Shortcuts

Function c10::Warning::set_warnAlways

Function Documentation

void c10::Warning::set_warnAlways(bool) noexcept(true)

The TORCH_WARN_ONCE macro is difficult to test for.

Use setWarnAlways(true) to turn it into TORCH_WARN, which can be tested for more easily.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources