Reference type of LiteralDocNode.
More...
#include <doc.h>
Reference type of LiteralDocNode.
- See also
- LiteralDocNode
◆ LiteralDoc()
tvm::script::printer::LiteralDoc::LiteralDoc |
( |
ffi::Any |
value, |
|
|
const Optional< AccessPath > & |
object_path |
|
) |
| |
|
explicitprotected |
◆ Boolean()
static LiteralDoc tvm::script::printer::LiteralDoc::Boolean |
( |
bool |
v, |
|
|
const Optional< AccessPath > & |
p |
|
) |
| |
|
inlinestatic |
Create a LiteralDoc to represent boolean.
- Parameters
-
v | The boolean value. |
p | The object path |
◆ DataType()
Create a LiteralDoc to represent string.
- Parameters
-
v | The string value. |
p | The object path |
◆ Device()
static LiteralDoc tvm::script::printer::LiteralDoc::Device |
( |
const DLDevice & |
v, |
|
|
const Optional< AccessPath > & |
p |
|
) |
| |
|
inlinestatic |
Create a LiteralDoc to represent device.
- Parameters
-
v | The device. |
p | The object path |
◆ Float()
static LiteralDoc tvm::script::printer::LiteralDoc::Float |
( |
double |
v, |
|
|
const Optional< AccessPath > & |
p |
|
) |
| |
|
inlinestatic |
Create a LiteralDoc to represent float.
- Parameters
-
v | The float value. |
p | The object path |
◆ Int()
static LiteralDoc tvm::script::printer::LiteralDoc::Int |
( |
int64_t |
v, |
|
|
const Optional< AccessPath > & |
p |
|
) |
| |
|
inlinestatic |
Create a LiteralDoc to represent integer.
- Parameters
-
v | The integer value. |
p | The object path |
◆ None()
Create a LiteralDoc to represent None/null/empty value.
- Parameters
-
◆ Str()
static LiteralDoc tvm::script::printer::LiteralDoc::Str |
( |
const String & |
v, |
|
|
const Optional< AccessPath > & |
p |
|
) |
| |
|
inlinestatic |
Create a LiteralDoc to represent string.
- Parameters
-
v | The string value. |
p | The object path |
◆ TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file:
- include/tvm/script/printer/doc.h