tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::te::ComputeOpObj Class Reference

A Compute op that compute a tensor on certain domain. More...

#include <operation.h>

Inheritance diagram for tvm::te::ComputeOpObj:
Collaboration diagram for tvm::te::ComputeOpObj:

Public Member Functions

 ComputeOpObj ()
 constructor
 
int num_outputs () const final
 
PrimType output_dtype (size_t i) const final
 Get the primitive element type of the i-th output tensor.
 
ffi::Array< Tensor > InputTensors () const final
 List all the input Tensors.
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("te.ComputeOp", ComputeOpObj, BaseComputeOpObj)
 
- Public Member Functions inherited from tvm::te::BaseComputeOpObj
ffi::Array< PrimExpr > output_shape (size_t idx) const final
 Get shape of i-th output tensor.
 
 TVM_FFI_DECLARE_OBJECT_INFO ("te.BaseComputeOp", BaseComputeOpObj, OperationObj)
 
- Public Member Functions inherited from tvm::te::OperationObj
virtual ~OperationObj ()
 
 TVM_FFI_DECLARE_OBJECT_INFO ("te.Operation", OperationObj, ffi::Object)
 

Static Public Member Functions

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

Public Attributes

ffi::Array< PrimExpr > body
 the compute expression
 
- Public Attributes inherited from tvm::te::BaseComputeOpObj
ffi::Array< IterVar > axis
 IterVar on each axis.
 
ffi::Array< IterVar > reduce_axis
 IterVar on each reduction axis, if the body is a Reduce.
 
- Public Attributes inherited from tvm::te::OperationObj
std::string name
 optional name of the operation
 
std::string tag
 optional tag of the operation
 
ffi::Map< ffi::String, ffi::Any > attrs
 additional attributes of the operation
 

Detailed Description

A Compute op that compute a tensor on certain domain.

Constructor & Destructor Documentation

◆ ComputeOpObj()

tvm::te::ComputeOpObj::ComputeOpObj ( )
inline

constructor

Member Function Documentation

◆ InputTensors()

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

List all the input Tensors.

Returns
List of input tensors.

Implements tvm::te::OperationObj.

◆ num_outputs()

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

Implements tvm::te::OperationObj.

◆ output_dtype()

PrimType tvm::te::ComputeOpObj::output_dtype ( size_t  i) const
finalvirtual

Get the primitive element type of the i-th output tensor.

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

Implements tvm::te::OperationObj.

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::te::ComputeOpObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "te.ComputeOp"  ,
ComputeOpObj  ,
BaseComputeOpObj   
)

Member Data Documentation

◆ body

ffi::Array<PrimExpr> tvm::te::ComputeOpObj::body

the compute expression


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