|
#define | CAFFE2_LOG_THRESHOLD INT_MIN |
|
#define | C10_LOG_EVERY_MS(severity, ms) LOG(severity) |
|
#define | C10_LOG_FIRST_N(severity, n) LOG(severity) |
|
#define | C10_LOG_EVERY_N(severity, n) LOG(severity) |
|
#define | CAFFE_ENFORCE(condition, ...) |
|
#define | CAFFE_ENFORCE_FINITE(condition, ...) |
|
#define | CAFFE_ENFORCE_WITH_CALLER(condition, ...) |
|
#define | CAFFE_THROW(...) ::c10::ThrowEnforceNotMet(__FILE__, __LINE__, "", ::c10::str(__VA_ARGS__)) |
|
#define | BINARY_COMP_HELPER(name, op) |
|
#define | CAFFE_ENFORCE_THAT_IMPL(condition, expr, ...) |
|
#define | CAFFE_ENFORCE_THAT_IMPL_WITH_CALLER(condition, expr, ...) |
|
#define | CAFFE_ENFORCE_THAT(condition, ...) CAFFE_ENFORCE_THAT_IMPL((condition), #condition, __VA_ARGS__) |
|
#define | CAFFE_ENFORCE_EQ(x, y, ...) CAFFE_ENFORCE_THAT_IMPL(Equals((x), (y)), #x " == " #y, __VA_ARGS__) |
|
#define | CAFFE_ENFORCE_NE(x, y, ...) CAFFE_ENFORCE_THAT_IMPL(NotEquals((x), (y)), #x " != " #y, __VA_ARGS__) |
|
#define | CAFFE_ENFORCE_LE(x, y, ...) CAFFE_ENFORCE_THAT_IMPL(LessEquals((x), (y)), #x " <= " #y, __VA_ARGS__) |
|
#define | CAFFE_ENFORCE_LT(x, y, ...) CAFFE_ENFORCE_THAT_IMPL(Less((x), (y)), #x " < " #y, __VA_ARGS__) |
|
#define | CAFFE_ENFORCE_GE(x, y, ...) CAFFE_ENFORCE_THAT_IMPL(GreaterEquals((x), (y)), #x " >= " #y, __VA_ARGS__) |
|
#define | CAFFE_ENFORCE_GT(x, y, ...) CAFFE_ENFORCE_THAT_IMPL(Greater((x), (y)), #x " > " #y, __VA_ARGS__) |
|
#define | CAFFE_ENFORCE_EQ_WITH_CALLER(x, y, ...) |
|
#define | CAFFE_ENFORCE_NE_WITH_CALLER(x, y, ...) |
|
#define | CAFFE_ENFORCE_LE_WITH_CALLER(x, y, ...) |
|
#define | CAFFE_ENFORCE_LT_WITH_CALLER(x, y, ...) CAFFE_ENFORCE_THAT_IMPL_WITH_CALLER(Less((x), (y)), #x " < " #y, __VA_ARGS__) |
|
#define | CAFFE_ENFORCE_GE_WITH_CALLER(x, y, ...) |
|
#define | CAFFE_ENFORCE_GT_WITH_CALLER(x, y, ...) |
|
#define | C10_LOG_API_USAGE_ONCE(...) |
| Very lightweight logging for the first time API usage. More...
|
|
|
| C10_DECLARE_int (caffe2_log_level) |
|
| C10_DECLARE_bool (caffe2_use_fatal_for_enforce) |
|
bool | c10::InitCaffeLogging (int *argc, char **argv) |
|
void | c10::UpdateLoggingLevelsFromFlags () |
|
void | c10::ThrowEnforceNotMet (const char *file, const int line, const char *condition, const std::string &msg, const void *caller) |
|
void | c10::ThrowEnforceFiniteNotMet (const char *file, const int line, const char *condition, const std::string &msg, const void *caller) |
|
constexpr bool | c10::IsUsingGoogleLogging () |
|
void | c10::ShowLogInfoToStderr () |
| A utility to allow one to show log info to stderr after the program starts. More...
|
|
void | c10::SetStackTraceFetcher (std::function< string(void)> fetcher) |
|
template<typename T1 , typename T2 > |
EnforceFailMessage | c10::enforce_detail::Equals (const T1 &x, const T2 &y) |
|
template<typename T1 , typename T2 > |
EnforceFailMessage | c10::enforce_detail::NotEquals (const T1 &x, const T2 &y) |
|
template<typename T1 , typename T2 > |
EnforceFailMessage | c10::enforce_detail::Greater (const T1 &x, const T2 &y) |
|
template<typename T1 , typename T2 > |
EnforceFailMessage | c10::enforce_detail::GreaterEquals (const T1 &x, const T2 &y) |
|
template<typename T1 , typename T2 > |
EnforceFailMessage | c10::enforce_detail::Less (const T1 &x, const T2 &y) |
|
template<typename T1 , typename T2 > |
EnforceFailMessage | c10::enforce_detail::LessEquals (const T1 &x, const T2 &y) |
|
void | c10::SetAPIUsageLogger (std::function< void(const std::string &)> logger) |
|
void | c10::LogAPIUsage (const std::string &event) |
|
void | c10::SetPyTorchDDPUsageLogger (std::function< void(const c10::DDPLoggingData &)> logger) |
|
void | c10::LogPyTorchDDPUsage (const c10::DDPLoggingData &ddpData) |
|
bool | c10::detail::LogAPIUsageFakeReturn (const std::string &event) |
|
#define C10_LOG_API_USAGE_ONCE |
( |
|
... | ) |
|
Value:
#define C10_ANONYMOUS_VARIABLE(str)
bool LogAPIUsageFakeReturn(const std::string &event)
Very lightweight logging for the first time API usage.
It's beneficial for tracking of individual functionality usage in larger applications.
In order to ensure light-weightedness of logging, we utilize static variable trick - LogAPIUsage will be invoked only once and further invocations will just do an atomic check.
Example: // Logs caller info with an arbitrary text event, if there is a usage. C10_LOG_API_USAGE_ONCE("my_api");
Definition at line 295 of file Logging.h.