Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PyTorch torch.is_warn_always_enabled function

PyTorch torch.is_warn_always_enabled function


PyTorch torch reference manual PyTorch torch reference manual

torch.is_warn_always_enabled is a function in PyTorch used to check whether warnings are always enabled.

Function definition

torch.is_warn_always_enabled()


Usage examples

Example

import

torch

Check whether warnings are always enabled

is_always

=

torch.

is_warn_always_enabled

(

)

print

(

"Whether to always warn:"

,

is_always

)


PyTorch torch reference manual PyTorch torch reference manual