Class AssertDoc#

Inheritance Relationships#

Base Type#

Class Documentation#

class AssertDoc : public tvm::script::printer::StmtDoc#

Reference type of AssertDocObj.

See also

AssertDocObj

Public Types

using ContainerType = AssertDocObj#

Public Functions

explicit AssertDoc(ExprDoc test, ffi::Optional<ExprDoc> msg = std::nullopt)#

Constructor of AssertDoc.

Parameters:
  • test – The expression to test.

  • msg – The optional error message when assertion failed.

inline explicit AssertDoc(::tvm::ffi::UnsafeInit tag)#
inline __PtrType operator->() const#
inline __PtrType get() const#