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

Managed reference to TensorLoadObj. More...

#include <expr.h>

Inheritance diagram for tvm::TensorLoad:
Collaboration diagram for tvm::TensorLoad:

Public Member Functions

TVM_TIRX_DLL TensorLoad (Expr source, ffi::Array< PrimExpr > indices, Location loc=UnknownLoc())
 Construct a load using the inference hook on the runtime class of source->ty.
 
TVM_TIRX_DLL TensorLoad (ffi::ObjectPtr< TensorLoadObj > node)
 Wrap an existing node, requiring a concrete primitive result type.
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (TensorLoad, PrimExpr, TensorLoadObj)
 
 TVM_DEFINE_OBJECT_REF_COW_METHOD (TensorLoadObj)
 
- Public Member Functions inherited from tvm::PrimExpr
TVM_TIRX_DLL PrimExpr (int32_t value)
 construct from integer.
 
TVM_TIRX_DLL PrimExpr (float value)
 construct from float.
 
 PrimExpr (ffi::ObjectPtr< ExprObj > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (PrimExpr, TypedExpr< PrimType >, ExprObj)
 
- Public Member Functions inherited from tvm::TypedExpr< PrimType >
PrimType ty () const
 
 TypedExpr (ffi::ObjectPtr< ExprObj > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (TypedExpr, Expr, ExprObj)
 
- Public Member Functions inherited from tvm::Expr
bool operator== (const Expr &other) const =delete
 
bool operator!= (const Expr &other) const =delete
 
bool operator< (const Expr &other) const =delete
 
 Expr (ffi::ObjectPtr< ExprObj > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Expr, ffi::ObjectRef, ExprObj)
 

Static Public Member Functions

static TVM_TIRX_DLL TensorLoad Unchecked (PrimType ty, Expr source, ffi::Array< PrimExpr > indices, Location loc=UnknownLoc())
 Construct with an explicit primitive result type, bypassing source-type inference.
 

Static Public Attributes

static constexpr bool _type_container_is_exact = true
 
- Static Public Attributes inherited from tvm::PrimExpr
static constexpr bool _type_container_is_exact = false
 
- Static Public Attributes inherited from tvm::TypedExpr< PrimType >
static constexpr bool _type_container_is_exact
 

Detailed Description

Managed reference to TensorLoadObj.

Constructor & Destructor Documentation

◆ TensorLoad() [1/2]

TVM_TIRX_DLL tvm::TensorLoad::TensorLoad ( Expr  source,
ffi::Array< PrimExpr >  indices,
Location  loc = UnknownLoc() 
)

Construct a load using the inference hook on the runtime class of source->ty.

◆ TensorLoad() [2/2]

TVM_TIRX_DLL tvm::TensorLoad::TensorLoad ( ffi::ObjectPtr< TensorLoadObj >  node)
explicit

Wrap an existing node, requiring a concrete primitive result type.

Member Function Documentation

◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()

tvm::TensorLoad::TVM_DEFINE_OBJECT_REF_COW_METHOD ( TensorLoadObj  )

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::TensorLoad::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( TensorLoad  ,
PrimExpr  ,
TensorLoadObj   
)

◆ Unchecked()

static TVM_TIRX_DLL TensorLoad tvm::TensorLoad::Unchecked ( PrimType  ty,
Expr  source,
ffi::Array< PrimExpr >  indices,
Location  loc = UnknownLoc() 
)
static

Construct with an explicit primitive result type, bypassing source-type inference.

Member Data Documentation

◆ _type_container_is_exact

constexpr bool tvm::TensorLoad::_type_container_is_exact = true
staticconstexpr

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