24#ifndef TVM_RELAX_OP_ATTR_H_
25#define TVM_RELAX_OP_ATTR_H_
37class InferLayoutOutput;
62inline constexpr ffi::reflection::AttrKey<bool>
kPurity{
"FPurity"};
68inline constexpr ffi::reflection::AttrKey<ffi::String>
kCallPacked{
"FCallPacked"};
85inline constexpr ffi::reflection::AttrKey<
102inline constexpr ffi::reflection::AttrKey<
112inline constexpr ffi::reflection::AttrKey<
124inline constexpr ffi::reflection::AttrKey<ffi::TypedFunction<tvm::ffi::Array<Expr>(
133inline constexpr ffi::reflection::AttrKey<
138inline constexpr ffi::reflection::AttrKey<bool>
kAllocator{
"TAllocator"};
139inline constexpr ffi::reflection::AttrKey<
140 ffi::TypedFunction<
Call(
const Call& call_node, DLDataType out_dtype)>>
150inline constexpr ffi::reflection::AttrKey<ffi::TypedFunction<InferLayoutOutput(
151 const Call& call,
const ffi::Map<ffi::String, ffi::Array<ffi::String>>& desired_layouts,
164namespace distributed {
167 "relax.dist.FInferTypeWithBuilder"};
The utility for constructing Relax binding blocks.
Managed reference to CallObj.
Definition expr.h:825
Managed reference to TypeObj.
Definition type.h:75
Managed reference to VarObj.
Definition expr.h:571
Definition block_builder.h:262
Container that stores possibly nested message with leaf message type T.
Definition nested_msg.h:119
Relax types, including the richer dependent Relax type nodes.
constexpr ffi::reflection::AttrKey< FInferTypeWithBuilder > kInferTypeWithBuilder
Definition op_attr.h:166
constexpr ffi::reflection::AttrKey< ffi::String > kCallPacked
Packed function implementation for operators. The relax operator will be lowered to this packed funct...
Definition op_attr.h:68
constexpr ffi::reflection::AttrKey< bool > kRequiresArgumentShapes
Definition op_attr.h:137
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)> > kPrimalGradient
Gradient for a specific op.
Definition op_attr.h:126
constexpr ffi::reflection::AttrKey< bool > kPurity
Definition op_attr.h:62
constexpr ffi::reflection::AttrKey< bool > kAllocator
Definition op_attr.h:138
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Expr(const BlockBuilder &bb, const Call &call)> > kLowerBuiltin
The function type of a function to lower the runtime builtin.
Definition op_attr.h:114
constexpr ffi::reflection::AttrKey< bool > kDataDependent
Definition op_attr.h:136
constexpr ffi::reflection::AttrKey< int > kMixedPrecisionPolicy
the operator pattern
Definition op_attr.h:143
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Expr(const BlockBuilder &bb, Call call)> > kNormalize
The function type of a normalization function.
Definition op_attr.h:87
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Expr(const BlockBuilder &bb, const Call &call)> > kLegalize
The function type of a legalization function.
Definition op_attr.h:104
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Type(const Call &call, const BlockBuilder &ctx)> > kInferTypeWithBuilder
Infer output type given the call.
Definition op_attr.h:135
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)> > kInferLayout
SLayout conversion interface.
Definition op_attr.h:153
constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Call(const Call &call_node, DLDataType out_dtype)> > kInferMixedPrecision
Definition op_attr.h:141
decltype(op_attr::kInferTypeWithBuilder)::ValueType FInferTypeWithBuilder
Definition op_attr.h:158
decltype(op_attr::kLowerBuiltin)::ValueType FLowerBuiltin
Definition op_attr.h:161
decltype(op_attr::kNormalize)::ValueType FNormalize
Definition op_attr.h:159
decltype(op_attr::kLegalize)::ValueType FLegalize
Definition op_attr.h:160
OpPatternKind
Definition op_attr.h:39
@ kOpaque
Definition op_attr.h:58
@ kTuple
Definition op_attr.h:56
@ kElemWise
Definition op_attr.h:41
@ kOutEWiseFusable
Definition op_attr.h:53
@ kInjective
Definition op_attr.h:48
@ kBroadcast
Definition op_attr.h:45
@ kCommReduce
Definition op_attr.h:50
decltype(op_attr::kCallPacked)::ValueType FCallPacked
Definition op_attr.h:157
tvm::Expr Expr
Definition type.h:42
decltype(op_attr::kPrimalGradient)::ValueType FPrimalGradient
Definition op_attr.h:162
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41
Helper container to store nested message for robust tuple-aware analysis.