|
tvm
|
Reference type of LiteralDocNode. More...
#include <doc.h>
Public Member Functions | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (LiteralDoc, ExprDoc, LiteralDocNode) | |
Public Member Functions inherited from tvm::script::printer::ExprDoc | |
| ExprDoc | operator[] (ffi::Array< Doc > indices) const |
| Create a doc representing index access on the current ExprDoc. | |
| ExprDoc (ffi::ObjectPtr< ExprDocNode > data) | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (ExprDoc, Doc, ExprDocNode) | |
Public Member Functions inherited from tvm::script::printer::Doc | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Doc, ffi::ObjectRef, DocNode) | |
Static Public Member Functions | |
| static LiteralDoc | None (const ffi::Optional< AccessPath > &p) |
| Create a LiteralDoc to represent None/null/empty value. | |
| static LiteralDoc | Int (int64_t v, const ffi::Optional< AccessPath > &p) |
| Create a LiteralDoc to represent integer. | |
| static LiteralDoc | Boolean (bool v, const ffi::Optional< AccessPath > &p) |
| Create a LiteralDoc to represent boolean. | |
| static LiteralDoc | Float (double v, const ffi::Optional< AccessPath > &p) |
| Create a LiteralDoc to represent float. | |
| static LiteralDoc | Str (const ffi::String &v, const ffi::Optional< AccessPath > &p) |
| Create a LiteralDoc to represent string. | |
| static LiteralDoc | DataType (DLDataType v, const ffi::Optional< AccessPath > &p) |
| Create a LiteralDoc to represent string. | |
| static LiteralDoc | Device (const DLDevice &v, const ffi::Optional< AccessPath > &p) |
| Create a LiteralDoc to represent device. | |
Protected Member Functions | |
| LiteralDoc (ffi::Any value, const ffi::Optional< AccessPath > &object_path) | |
Protected Member Functions inherited from tvm::script::printer::ExprDoc | |
| ExprDoc ()=default | |
Protected Member Functions inherited from tvm::script::printer::Doc | |
| Doc ()=default | |
| Doc (ffi::ObjectPtr< DocNode > data) | |
Reference type of LiteralDocNode.
|
explicitprotected |
|
inlinestatic |
Create a LiteralDoc to represent boolean.
| v | The boolean value. |
| p | The object path |
|
inlinestatic |
Create a LiteralDoc to represent string.
| v | The string value. |
| p | The object path |
|
inlinestatic |
Create a LiteralDoc to represent device.
| v | The device. |
| p | The object path |
|
inlinestatic |
Create a LiteralDoc to represent float.
| v | The float value. |
| p | The object path |
|
inlinestatic |
Create a LiteralDoc to represent integer.
| v | The integer value. |
| p | The object path |
|
inlinestatic |
Create a LiteralDoc to represent None/null/empty value.
| p | The object path |
|
inlinestatic |
Create a LiteralDoc to represent string.
| v | The string value. |
| p | The object path |
| tvm::script::printer::LiteralDoc::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE | ( | LiteralDoc | , |
| ExprDoc | , | ||
| LiteralDocNode | |||
| ) |