24 #ifndef TVM_RELAY_TRANSFORM_H_ 25 #define TVM_RELAY_TRANSFORM_H_ 394 TVM_DLL
Pass EtaExpand(
bool expand_constructor,
bool expand_global_var);
486 std::function<
Expr(
const Expr&)> fmulti_ref_trigger =
nullptr);
502 std::function<
Expr(
const Expr&)> fmulti_ref_trigger =
nullptr);
558 #endif // TVM_RELAY_TRANSFORM_H_
Expr ForwardRewrite(const Expr &expr, const String &rewrite_map_attr_name, std::function< ObjectRef(const Call &)> fcontext=nullptr, std::function< Expr(const Expr &)> fmulti_ref_trigger=nullptr)
Apply rewrite rules to rewrite the expr in post DFS order. This function is used as a helper function...
Function UnCPS(const Function &f)
Remove the continuation argument of a CPS function.
Managed reference to FunctionNode.
Definition: function.h:104
Relay expression language.
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
The Expr and related elements in DataFlow construction.
Expr Bind(const Expr &expr, const tvm::Map< Var, Expr > &binds)
Bind the free variables to a Relay expression. This is a helper function usually called by other pass...
Expr DeDup(const Expr &e)
Deduplicate the bound variables and type variables in the expression.
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:270
PassContext that is used to configure the pass behavior.
Definition: transform.h:154
Reference to string objects.
Definition: string.h:129
Please refer to TypedPackedFunc<R(Args..)>.
Definition: packed_func.h:136
Managed reference to RelayExprNode.
Definition: expr.h:177
Managed reference class to TargetNode.
Definition: target.h:132
Base class of all object reference.
Definition: object.h:504
tvm::RelayExpr Expr
Definition: expr.h:43
Managed reference class to IRModuleNode.
Definition: module.h:352
PassContextNode contains the information that a pass can rely on, such as analysis results...
Definition: transform.h:78
Compilation target object.
Map container of NodeRef->NodeRef in DSL graph. Map implements copy on write semantics, which means map is mutable but copy will happen when array is referenced in more than two places.
Definition: map.h:1235
Packed function is a type-erased function. The arguments are passed by packed format.
Definition: packed_func.h:68
tvm::PrimExpr mod(const tvm::PrimExpr &a, const tvm::PrimExpr &b)
Definition: broadcast.h:271
Primitive operators(builtin intrinsics).