|
tvm
|
Doc that represents anonymous function. More...
#include <doc.h>
Public Member Functions | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.printer.LambdaDoc", LambdaDocNode, ExprDocNode) | |
Public Member Functions inherited from tvm::script::printer::ExprDocNode | |
| ExprDoc | Attr (ffi::String attr) const |
| Create a doc representing attribute access on the current ExprDoc. More... | |
| ExprDoc | operator[] (ffi::Array< Doc > indices) const |
| Create a doc representing index access on the current ExprDoc. More... | |
| ExprDoc | Call (ffi::Array< ExprDoc, void > args) const |
| Create a doc representing calling the current ExprDoc. More... | |
| ExprDoc | Call (ffi::Array< ExprDoc, void > args, ffi::Array< ffi::String > kwargs_keys, ffi::Array< ExprDoc, void > kwargs_values) const |
| Create a doc representing attribute access on the current ExprDoc. More... | |
| TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.ExprDoc", ExprDocNode, DocNode) | |
Public Member Functions inherited from tvm::script::printer::DocNode | |
| TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.Doc", DocNode, Object) | |
| virtual | ~DocNode ()=default |
Static Public Member Functions | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::script::printer::ExprDocNode | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::script::printer::DocNode | |
| static void | RegisterReflection () |
Public Attributes | |
| ffi::Array< IdDoc > | args |
| The arguments of this anonymous function. More... | |
| ExprDoc | body {ffi::UnsafeInit()} |
| The body of this anonymous function. More... | |
Public Attributes inherited from tvm::script::printer::DocNode | |
| ffi::Array< ffi::reflection::AccessPath > | source_paths |
| The list of object paths of the source IR node. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from tvm::script::printer::DocNode | |
| static constexpr bool | _type_mutable = true |
Doc that represents anonymous function.
LambdaDoc can only have positional arguments without type annotation, and a single expression as body.
|
inlinestatic |
| tvm::script::printer::LambdaDocNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "script.printer.LambdaDoc" | , |
| LambdaDocNode | , | ||
| ExprDocNode | |||
| ) |
| ffi::Array<IdDoc> tvm::script::printer::LambdaDocNode::args |
The arguments of this anonymous function.
| ExprDoc tvm::script::printer::LambdaDocNode::body {ffi::UnsafeInit()} |
The body of this anonymous function.