We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6bf72 commit f6d0d49Copy full SHA for f6d0d49
runtime/platform/log.h
@@ -148,10 +148,10 @@ inline void logf(
148
*/
149
#define ET_LOG(_level, _format, ...) \
150
({ \
151
- et_timestamp_t _timestamp = torch::executor::internal::getLogTimestamp(); \
152
- auto _log_level = torch::executor::LogLevel::_level; \
+ const auto _log_level = torch::executor::LogLevel::_level; \
153
if (static_cast<uint32_t>(_log_level) >= \
154
static_cast<uint32_t>(torch::executor::LogLevel::ET_MIN_LOG_LEVEL)) { \
+ const auto _timestamp = torch::executor::internal::getLogTimestamp(); \
155
torch::executor::internal::logf( \
156
_log_level, \
157
_timestamp, \
0 commit comments