Shortcuts

Class Warning

Class Documentation

class Warning

Public Types

using warning_variant_t = std::variant<UserWarning, DeprecationWarning>

Public Functions

Warning(warning_variant_t type, const SourceLocation &source_location, std::string msg, bool verbatim)
Warning(warning_variant_t type, SourceLocation source_location, const char *msg, bool verbatim)
Warning(warning_variant_t type, SourceLocation source_location, ::c10::detail::CompileTimeEmptyString msg, bool verbatim)
warning_variant_t type() const
const SourceLocation &source_location() const
const std::string &msg() const
bool verbatim() const
class DeprecationWarning
class UserWarning

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