File logging.h#

↰ Parent directory (tvm/runtime)

logging utilities

Definition (tvm/runtime/logging.h)#

Detailed Description#

We use the following facilities from tvm/ffi/error.h for error handling and checking:

  • TVM_FFI_THROW(ErrorKind) << “msg”;

  • TVM_FFI_CHECK(cond, ErrorKind) << “msg”;

  • TVM_FFI_CHECK_EQ(x, y, ErrorKind) << “msg”;

  • TVM_FFI_ICHECK(x) << “msg”; // InternalError

  • TVM_FFI_ICHECK_EQ(x, y) << “msg”;

  • TVM_FFI_DCHECK(x) << “msg”; // Debug-only InternalError

Define LOG, Define LOG, Define LOG are kept for logging. Define LOG is kept for completeness, it throws InternalError.

Includes#

  • ctime

  • iomanip

  • iostream

  • sstream

  • string

  • tvm/ffi/error.h

  • tvm/runtime/base.h (File base.h)

  • unordered_map

  • vector (File vector.h)

Included By#

Namespaces#

Defines#