tvm
|
A placeholder op represents an input placeholder. More...
#include <operation.h>
Public Member Functions | |
int | num_outputs () const final |
DataType | output_dtype (size_t i) const final |
Get data type. i-th output tensor. More... | |
Array< PrimExpr > | output_shape (size_t i) const final |
Get shape of i-th output tensor. More... | |
Array< Tensor > | InputTensors () const final |
List all the input Tensors. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (PlaceholderOpNode, OperationNode) | |
![]() | |
virtual | ~OperationNode () |
TVM_DECLARE_BASE_OBJECT_INFO (OperationNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
Array< PrimExpr > | shape |
The shape of the input. More... | |
DataType | dtype |
The data type of the input. More... | |
![]() | |
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.PlaceholderOp" |
![]() | |
static constexpr const char * | _type_key = "te.Operation" |
A placeholder op represents an input placeholder.
|
finalvirtual |
|
finalvirtual |
Implements tvm::te::OperationNode.
|
finalvirtual |
Get data type. i-th output tensor.
i | The output index. |
Implements tvm::te::OperationNode.
|
finalvirtual |
Get shape of i-th output tensor.
i | The output index. |
Implements tvm::te::OperationNode.
|
inlinestatic |
tvm::te::PlaceholderOpNode::TVM_DECLARE_BASE_OBJECT_INFO | ( | PlaceholderOpNode | , |
OperationNode | |||
) |
|
staticconstexpr |
DataType tvm::te::PlaceholderOpNode::dtype |
The data type of the input.
Array<PrimExpr> tvm::te::PlaceholderOpNode::shape |
The shape of the input.