Rate this Page

Define TORCH_CHECK#

Define Documentation#

TORCH_CHECK(cond, ...)

if (C10_UNLIKELY_OR_CONST(!(cond))) {            \

::

c10::detail::torchCheckFail

(                 \

__func__,                                  \

__FILE__,                                  \

static_cast<uint32_t>(__LINE__),           \

TORCH_CHECK_MSG

(cond, "", ##__VA_ARGS__)); \

}

#