tvm
Loading...
Searching...
No Matches
Namespaces | Typedefs | Enumerations | Variables
op_attr.h File Reference

Attribute keys and callback contracts for Relax operators. More...

#include <tvm/relax/block_builder.h>
#include <tvm/relax/expr.h>
#include <tvm/relax/nested_msg.h>
#include <tvm/relax/type.h>
#include <tvm/te/tensor.h>
Include dependency graph for op_attr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tvm
 An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
 
namespace  tvm::relax
 
namespace  tvm::relax::op_attr
 
namespace  tvm::relax::distributed
 
namespace  tvm::relax::distributed::op_attr
 

Typedefs

using tvm::relax::FCallPacked = decltype(op_attr::kCallPacked)::ValueType
 
using tvm::relax::FInferTypeWithBuilder = decltype(op_attr::kInferTypeWithBuilder)::ValueType
 
using tvm::relax::FNormalize = decltype(op_attr::kNormalize)::ValueType
 
using tvm::relax::FLegalize = decltype(op_attr::kLegalize)::ValueType
 
using tvm::relax::FLowerBuiltin = decltype(op_attr::kLowerBuiltin)::ValueType
 
using tvm::relax::FPrimalGradient = decltype(op_attr::kPrimalGradient)::ValueType
 

Enumerations

enum  tvm::relax::OpPatternKind {
  tvm::relax::kElemWise = 0 , tvm::relax::kBroadcast = 1 , tvm::relax::kInjective = 2 , tvm::relax::kCommReduce = 3 ,
  tvm::relax::kOutEWiseFusable = 4 , tvm::relax::kTuple = 7 , tvm::relax::kOpaque = 8
}
 

Variables

constexpr ffi::reflection::AttrKey< bool > tvm::relax::op_attr::kPurity {"FPurity"}
 
constexpr ffi::reflection::AttrKey< ffi::String > tvm::relax::op_attr::kCallPacked {"FCallPacked"}
 Packed function implementation for operators. The relax operator will be lowered to this packed function call during codegen.
 
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Expr(const BlockBuilder &bb, Call call)> > tvm::relax::op_attr::kNormalize {"FNormalize"}
 The function type of a normalization function.
 
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Expr(const BlockBuilder &bb, const Call &call)> > tvm::relax::op_attr::kLegalize {"FLegalize"}
 The function type of a legalization function.
 
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Expr(const BlockBuilder &bb, const Call &call)> > tvm::relax::op_attr::kLowerBuiltin {"FLowerBuiltin"}
 The function type of a function to lower the runtime builtin.
 
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< tvm::ffi::Array< Expr >(const Var &orig_var, const Call &orig_call, const Var &output_grad, const BlockBuilder &ctx)> > tvm::relax::op_attr::kPrimalGradient {"FPrimalGradient"}
 Gradient for a specific op.
 
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Type(const Call &call, const BlockBuilder &ctx)> > tvm::relax::op_attr::kInferTypeWithBuilder {"relax.FInferTypeWithBuilder"}
 Infer output type given the call.
 
constexpr ffi::reflection::AttrKey< bool > tvm::relax::op_attr::kDataDependent {"FDataDependent"}
 
constexpr ffi::reflection::AttrKey< bool > tvm::relax::op_attr::kRequiresArgumentShapes {"RequiresArgumentShapes"}
 
constexpr ffi::reflection::AttrKey< bool > tvm::relax::op_attr::kAllocator {"TAllocator"}
 
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Call(const Call &call_node, DLDataType out_dtype)> > tvm::relax::op_attr::kInferMixedPrecision {"FInferMixedPrecision"}
 
constexpr ffi::reflection::AttrKey< int > tvm::relax::op_attr::kMixedPrecisionPolicy {"TMixedPrecisionPolicy"}
 the operator pattern
 
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< InferLayoutOutput(const Call &call, const ffi::Map< ffi::String, ffi::Array< ffi::String > > &desired_layouts, const ffi::Map< Var, NestedMsg< LayoutDecision > > &var_layout_map)> > tvm::relax::op_attr::kInferLayout {"FRelaxInferLayout"}
 SLayout conversion interface.
 
constexpr ffi::reflection::AttrKey< FInferTypeWithBuilder > tvm::relax::distributed::op_attr::kInferTypeWithBuilder
 

Detailed Description

Attribute keys and callback contracts for Relax operators.