Skip to content

Commit 2f70506

Browse files
committed
Fix
1 parent d837eae commit 2f70506

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/tvm/relay/transform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,11 +533,11 @@ TVM_DLL Pass CanonicalizeOps();
533533
TVM_DLL Pass AlterOpLayout();
534534

535535
/*!
536-
* \brief Canonicalize an expression to make operator fusion more efficient.
536+
* \brief Canonicalize cast expressions to make operator fusion more efficient.
537537
*
538538
* \return The pass.
539539
*/
540-
TVM_DLL Pass CanonicalizeExpr();
540+
TVM_DLL Pass CanonicalizeCasr();
541541

542542
} // namespace transform
543543
} // namespace relay

src/relay/pass/canonicalize_cast.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ namespace transform {
129129
Pass CanonicalizeCast() {
130130
runtime::TypedPackedFunc<Function(Function, Module, PassContext)> pass_func =
131131
[=](Function f, Module m, PassContext pc) {
132-
return Downcast<Function>(CanonicalizeExpr(f));
132+
return Downcast<Function>(CanonicalizeCast(f));
133133
};
134134
return CreateFunctionPass(pass_func, 3, "CanonicalizeCast",
135135
{ir::StringImm::make("InferType")});

0 commit comments

Comments
 (0)