pytorch / 2 / generated / torch.is_warn_always_enabled.html

torch.is_warn_always_enabled

torch.is_warn_always_enabled() [source]

Returns True if the global warn_always flag is turned on. Refer to torch.set_warn_always() documentation for more details.

Return type

bool

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.is_warn_always_enabled.html