Caffe2 - C++ API
A deep learning, cross platform ML framework
Static Public Member Functions
c10::Warning Class Reference

Static Public Member Functions

static void warn (SourceLocation source_location, std::string msg)
 Issue a warning with a given message. More...
 
static void set_warning_handler (handler_t handler)
 Sets the global warning handler. More...
 
static void print_warning (const SourceLocation &source_location, const char *msg)
 The default warning handler. Prints the message to stderr.
 

Detailed Description

Definition at line 84 of file Exception.h.

Member Function Documentation

void c10::Warning::set_warning_handler ( handler_t  handler)
static

Sets the global warning handler.

This is not thread-safe, so it should generally be called once during initialization.

Definition at line 70 of file Exception.cpp.

void c10::Warning::warn ( SourceLocation  source_location,
std::string  msg 
)
static

Issue a warning with a given message.

Dispatched to the current warning handler.

Definition at line 66 of file Exception.cpp.


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