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 Array< PrimExpr > | output_shape (size_t i) const =0 |
Get shape of i-th output tensor. More... | |
virtual Array< Tensor > | InputTensors () const =0 |
List all the input Tensors. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (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... | |
Map< String, ffi::Any > | attrs |
additional attributes of the operation More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "te.Operation" |
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_DECLARE_BASE_OBJECT_INFO | ( | OperationNode | , |
Object | |||
) |
|
staticconstexpr |
Map<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