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

External computation that cannot be splitted. More...

#include <operation.h>

Inheritance diagram for tvm::te::ExternOpObj:
Collaboration diagram for tvm::te::ExternOpObj:

Public Member Functions

 ExternOpObj (SeqStmt body)
 
 ExternOpObj (ffi::UnsafeInit)
 
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< PrimExpr > output_shape (size_t i) const final
 Get shape of i-th output tensor.
 
ffi::Array< Tensor > InputTensors () const final
 List all the input Tensors.
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("te.ExternOp", ExternOpObj, 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::OperationObj
static void RegisterReflection ()
 

Public Attributes

ffi::Array< Tensor > inputs
 The input tensors.
 
ffi::Array< TensorVar > input_placeholders
 Symbolic placeholder representation of inputs.
 
ffi::Array< TensorVar > output_placeholders
 Symbolic placeholder representation of outputs.
 
SeqStmt body
 the statement that generates the computation.
 
- 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

External computation that cannot be splitted.

Constructor & Destructor Documentation

◆ ExternOpObj() [1/2]

tvm::te::ExternOpObj::ExternOpObj ( SeqStmt  body)
inlineexplicit

◆ ExternOpObj() [2/2]

tvm::te::ExternOpObj::ExternOpObj ( ffi::UnsafeInit  )
inlineexplicit

Member Function Documentation

◆ InputTensors()

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

List all the input Tensors.

Returns
List of input tensors.

Implements tvm::te::OperationObj.

◆ num_outputs()

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

Implements tvm::te::OperationObj.

◆ output_dtype()

PrimType tvm::te::ExternOpObj::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.

◆ output_shape()

ffi::Array< PrimExpr > tvm::te::ExternOpObj::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::OperationObj.

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::te::ExternOpObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "te.ExternOp"  ,
ExternOpObj  ,
OperationObj   
)

Member Data Documentation

◆ body

SeqStmt tvm::te::ExternOpObj::body

the statement that generates the computation.

◆ input_placeholders

ffi::Array<TensorVar> tvm::te::ExternOpObj::input_placeholders

Symbolic placeholder representation of inputs.

◆ inputs

ffi::Array<Tensor> tvm::te::ExternOpObj::inputs

The input tensors.

◆ output_placeholders

ffi::Array<TensorVar> tvm::te::ExternOpObj::output_placeholders

Symbolic placeholder representation of outputs.


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