tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::te::PlaceholderOpNode Class Reference

A placeholder op represents an input placeholder. More...

#include <operation.h>

Inheritance diagram for tvm::te::PlaceholderOpNode:
Collaboration diagram for tvm::te::PlaceholderOpNode:

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< PrimExproutput_shape (size_t i) const final
 Get shape of i-th output tensor. More...
 
Array< TensorInputTensors () const final
 List all the input Tensors. More...
 
 TVM_DECLARE_BASE_OBJECT_INFO (PlaceholderOpNode, OperationNode)
 
- Public Member Functions inherited from tvm::te::OperationNode
virtual ~OperationNode ()
 
 TVM_DECLARE_BASE_OBJECT_INFO (OperationNode, Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::te::OperationNode
static void RegisterReflection ()
 

Public Attributes

Array< PrimExprshape
 The shape of the input. More...
 
DataType dtype
 The data type of the input. More...
 
- Public Attributes inherited from tvm::te::OperationNode
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 Public Attributes inherited from tvm::te::OperationNode
static constexpr const char * _type_key = "te.Operation"
 

Detailed Description

A placeholder op represents an input placeholder.

Member Function Documentation

◆ InputTensors()

Array<Tensor> tvm::te::PlaceholderOpNode::InputTensors ( ) const
finalvirtual

List all the input Tensors.

Returns
List of input tensors.

Implements tvm::te::OperationNode.

◆ num_outputs()

int tvm::te::PlaceholderOpNode::num_outputs ( ) const
finalvirtual
Returns
number of outputs

Implements tvm::te::OperationNode.

◆ output_dtype()

DataType tvm::te::PlaceholderOpNode::output_dtype ( size_t  i) const
finalvirtual

Get data type. i-th output tensor.

Parameters
iThe output index.
Returns
type of i-th output.

Implements tvm::te::OperationNode.

◆ output_shape()

Array<PrimExpr> tvm::te::PlaceholderOpNode::output_shape ( size_t  i) const
finalvirtual

Get shape of i-th output tensor.

Parameters
iThe output index.
Returns
shape of i-th output.

Implements tvm::te::OperationNode.

◆ RegisterReflection()

static void tvm::te::PlaceholderOpNode::RegisterReflection ( )
inlinestatic

◆ TVM_DECLARE_BASE_OBJECT_INFO()

tvm::te::PlaceholderOpNode::TVM_DECLARE_BASE_OBJECT_INFO ( PlaceholderOpNode  ,
OperationNode   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::te::PlaceholderOpNode::_type_key = "te.PlaceholderOp"
staticconstexpr

◆ dtype

DataType tvm::te::PlaceholderOpNode::dtype

The data type of the input.

◆ shape

Array<PrimExpr> tvm::te::PlaceholderOpNode::shape

The shape of the input.


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