|
| constexpr ffi::reflection::AttrKey< bool > | kPurity {"FPurity"} |
| |
| constexpr ffi::reflection::AttrKey< ffi::String > | 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)> > | kNormalize {"FNormalize"} |
| | The function type of a normalization function.
|
| |
| constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Expr(const BlockBuilder &bb, const Call &call)> > | kLegalize {"FLegalize"} |
| | The function type of a legalization function.
|
| |
| constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Expr(const BlockBuilder &bb, const Call &call)> > | 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)> > | kPrimalGradient {"FPrimalGradient"} |
| | Gradient for a specific op.
|
| |
| constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Type(const Call &call, const BlockBuilder &ctx)> > | kInferTypeWithBuilder {"relax.FInferTypeWithBuilder"} |
| | Infer output type given the call.
|
| |
| constexpr ffi::reflection::AttrKey< bool > | kDataDependent {"FDataDependent"} |
| |
| constexpr ffi::reflection::AttrKey< bool > | kRequiresArgumentShapes {"RequiresArgumentShapes"} |
| |
| constexpr ffi::reflection::AttrKey< bool > | kAllocator {"TAllocator"} |
| |
| constexpr ffi::reflection::AttrKey< ffi::TypedFunction< Call(const Call &call_node, DLDataType out_dtype)> > | kInferMixedPrecision {"FInferMixedPrecision"} |
| |
| constexpr ffi::reflection::AttrKey< int > | 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)> > | kInferLayout {"FRelaxInferLayout"} |
| | SLayout conversion interface.
|
| |
| constexpr ffi::reflection::AttrKey< ffi::TypedFunction<Expr(const BlockBuilder& bb, const Call& call)> > tvm::relax::op_attr::kLegalize {"FLegalize"} |
|
inlineconstexpr |
The function type of a legalization function.
A legalization function is used to replace a relax::Call with more concrete implementations. For example, the operation relax.op.add may be replaced with a call to a TIR function implementing addition of two tensors.
The purpose of FLegalize is to remove calls to the operator while lowering. Therefore, unlike FNormalize, the resulting expression may not contain the original operator.
- Parameters
-