PyTorch
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
c10::Warning Class Reference

#include <Exception.h>

Classes

class  DeprecationWarning
 
class  UserWarning
 

Public Types

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

Public Member 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
 

Member Typedef Documentation

◆ warning_variant_t

Constructor & Destructor Documentation

◆ Warning() [1/3]

c10::Warning::Warning ( warning_variant_t  type,
const SourceLocation &  source_location,
std::string  msg,
bool  verbatim 
)

◆ Warning() [2/3]

c10::Warning::Warning ( warning_variant_t  type,
SourceLocation  source_location,
const char *  msg,
bool  verbatim 
)

◆ Warning() [3/3]

c10::Warning::Warning ( warning_variant_t  type,
SourceLocation  source_location,
::c10::detail::CompileTimeEmptyString  msg,
bool  verbatim 
)

Member Function Documentation

◆ msg()

const std::string & c10::Warning::msg ( ) const

◆ source_location()

const SourceLocation & c10::Warning::source_location ( ) const

◆ type()

warning_variant_t c10::Warning::type ( ) const

◆ verbatim()

bool c10::Warning::verbatim ( ) const

The documentation for this class was generated from the following file: