|
tvm
|
Base class of all operation nodes. More...
#include <operation.h>
Public Member Functions | |
| virtual | ~OperationNode () |
| virtual int | num_outputs () const =0 |
| virtual DataType | output_dtype (size_t i) const =0 |
| Get data type. i-th output tensor. More... | |
| virtual ffi::Array< PrimExpr > | output_shape (size_t i) const =0 |
| Get shape of i-th output tensor. More... | |
| virtual ffi::Array< Tensor > | InputTensors () const =0 |
| List all the input Tensors. More... | |
| TVM_FFI_DECLARE_OBJECT_INFO ("te.Operation", OperationNode, Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Public Attributes | |
| std::string | name |
| optional name of the operation More... | |
| std::string | tag |
| optional tag of the operation More... | |
| ffi::Map< ffi::String, ffi::Any > | attrs |
| additional attributes of the operation More... | |
Base class of all operation nodes.
|
inlinevirtual |
|
pure virtual |
List all the input Tensors.
Implemented in tvm::te::ExternOpNode, tvm::te::ScanOpNode, tvm::te::ComputeOpNode, and tvm::te::PlaceholderOpNode.
|
pure virtual |
Implemented in tvm::te::ExternOpNode, tvm::te::ScanOpNode, tvm::te::ComputeOpNode, and tvm::te::PlaceholderOpNode.
|
pure virtual |
Get data type. i-th output tensor.
| i | The output index. |
Implemented in tvm::te::ExternOpNode, tvm::te::ScanOpNode, tvm::te::ComputeOpNode, and tvm::te::PlaceholderOpNode.
|
pure virtual |
Get shape of i-th output tensor.
| i | The output index. |
Implemented in tvm::te::BaseComputeOpNode, tvm::te::ExternOpNode, tvm::te::ScanOpNode, and tvm::te::PlaceholderOpNode.
|
inlinestatic |
| tvm::te::OperationNode::TVM_FFI_DECLARE_OBJECT_INFO | ( | "te.Operation" | , |
| OperationNode | , | ||
| Object | |||
| ) |
| ffi::Map<ffi::String, ffi::Any> tvm::te::OperationNode::attrs |
additional attributes of the operation
| std::string tvm::te::OperationNode::name |
optional name of the operation
| std::string tvm::te::OperationNode::tag |
optional tag of the operation