Rate this Page

Function c10::WarningUtils::set_warnAlways#

Function Documentation#

void c10::WarningUtils::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.