tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::script::printer::LambdaDocNode Class Reference

Doc that represents anonymous function. More...

#include <doc.h>

Inheritance diagram for tvm::script::printer::LambdaDocNode:
Collaboration diagram for tvm::script::printer::LambdaDocNode:

Public Member Functions

 TVM_DECLARE_FINAL_OBJECT_INFO (LambdaDocNode, ExprDocNode)
 
- Public Member Functions inherited from tvm::script::printer::ExprDocNode
ExprDoc Attr (String attr) const
 Create a doc representing attribute access on the current ExprDoc. More...
 
ExprDoc operator[] (Array< Doc > indices) const
 Create a doc representing index access on the current ExprDoc. More...
 
ExprDoc Call (Array< ExprDoc, void > args) const
 Create a doc representing calling the current ExprDoc. More...
 
ExprDoc Call (Array< ExprDoc, void > args, Array< String > kwargs_keys, Array< ExprDoc, void > kwargs_values) const
 Create a doc representing attribute access on the current ExprDoc. More...
 
 TVM_DECLARE_BASE_OBJECT_INFO (ExprDocNode, DocNode)
 
- Public Member Functions inherited from tvm::script::printer::DocNode
 TVM_DECLARE_BASE_OBJECT_INFO (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

Array< IdDocargs
 The arguments of this anonymous function. More...
 
ExprDoc body {nullptr}
 The body of this anonymous function. More...
 
- Public Attributes inherited from tvm::script::printer::DocNode
Array< ffi::reflection::AccessPath > source_paths
 The list of object paths of the source IR node. More...
 

Static Public Attributes

static constexpr const char * _type_key = "script.printer.LambdaDoc"
 
- Static Public Attributes inherited from tvm::script::printer::ExprDocNode
static constexpr const char * _type_key = "script.printer.ExprDoc"
 
- Static Public Attributes inherited from tvm::script::printer::DocNode
static constexpr const char * _type_key = "script.printer.Doc"
 
static constexpr bool _type_mutable = true
 

Detailed Description

Doc that represents anonymous function.

LambdaDoc can only have positional arguments without type annotation, and a single expression as body.

See also
LambdaDoc

Member Function Documentation

◆ RegisterReflection()

static void tvm::script::printer::LambdaDocNode::RegisterReflection ( )
inlinestatic

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::script::printer::LambdaDocNode::TVM_DECLARE_FINAL_OBJECT_INFO ( LambdaDocNode  ,
ExprDocNode   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::script::printer::LambdaDocNode::_type_key = "script.printer.LambdaDoc"
staticconstexpr

◆ args

Array<IdDoc> tvm::script::printer::LambdaDocNode::args

The arguments of this anonymous function.

◆ body

ExprDoc tvm::script::printer::LambdaDocNode::body {nullptr}

The body of this anonymous function.


The documentation for this class was generated from the following file: