Purpose: temporally disable some annoying
TORCH_WARN at runtime level without upgrading to a newer version that removes the
TORCH_WARN. Is it possible and how?
TORCH_WARN in libtorch: pytorch/Exception.h at 631f0351313da2edeeb72cf8bb963035b11425d9 · pytorch/pytorch · GitHub
Some others have the same question in How do I disable libtorch warning - #3 by ptrblck