Function tvm::script::ir_builder::ir::Assert

Function tvm::script::ir_builder::ir::Assert#

Function Documentation#

AssertFrame tvm::script::ir_builder::ir::Assert(PrimExpr condition, ffi::String error_kind, ffi::Array<ffi::String> message_parts)#

The assertion statement.

Parameters:
  • condition – The assertion condition.

  • error_kind – The error kind (e.g. “RuntimeError”, “TypeError”, “ValueError”).

  • message_parts – The error message parts (stored as separate fragments in the IR).

Returns:

The AssertFrame.