tvm
Loading...
Searching...
No Matches
Variables
tvm::type_attr Namespace Reference

Variables

constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< PrimType(const TensorLoadObj *)> > kTensorLoadInferType {"__tvm_tensor_load_infer_type__"}
 Infer a load's primitive result type from its populated source, indices and location.
 
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< ffi::ObjectRef(Expr, SubscriptSlice, Location)> > kExprSubscriptRealizeByTy {"__tvm_expr_subscript_realize__"}
 Realize a subscript of an expression, dispatched on the type of the expression.
 
constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< void(const Expr &, const ffi::Array< PrimExpr > &, const PrimExpr &)> > kTensorStoreValidateByTy {"__tvm_tensor_store_validate__"}
 Validate a tensor store by its destination type before constructing the statement.
 

Variable Documentation

◆ kExprSubscriptRealizeByTy

constexpr ffi::reflection::AttrKey< ffi::TypedFunction<ffi::ObjectRef(Expr, SubscriptSlice, Location)> > tvm::type_attr::kExprSubscriptRealizeByTy {"__tvm_expr_subscript_realize__"}
inlineconstexpr

Realize a subscript of an expression, dispatched on the type of the expression.

The callback receives the expression, its point indices or slices, and the source location. It returns a defined object representing the realized subscription.

◆ kTensorLoadInferType

constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView<PrimType(const TensorLoadObj*)> > tvm::type_attr::kTensorLoadInferType {"__tvm_tensor_load_infer_type__"}
inlineconstexpr

Infer a load's primitive result type from its populated source, indices and location.

Note
The callback must derive the result from those inputs, not the unpublished result type.

◆ kTensorStoreValidateByTy

constexpr ffi::reflection::AttrKey<ffi::reflection::NativeFunctionView<void( const Expr&, const ffi::Array<PrimExpr>&, const PrimExpr&)> > tvm::type_attr::kTensorStoreValidateByTy {"__tvm_tensor_store_validate__"}
inlineconstexpr

Validate a tensor store by its destination type before constructing the statement.