On this page
torch.set_warn_always
torch.set_warn_always(b)
[source]-
When this flag is False (default) then some PyTorch warnings may only appear once per process. This helps avoid excessive warning information. Setting it to True causes these warnings to always appear, which may be helpful when debugging.
- Parameters
-
b (
bool
) – If True, force warnings to always be emitted If False, set to the default behaviour
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.set_warn_always.html