This is an automated email from the ASF dual-hosted git repository. tqchen pushed a commit to branch tvmscript-generic-parser-builder in repository https://gitbox.apache.org/repos/asf/tvm.git
commit 59ae9bdf404070e144a35ca8922f5bc095ccc463 Author: Tianqi Chen <[email protected]> AuthorDate: Mon Sep 21 02:47:29 2026 +0000 Format frame finalization after span member rename --- src/relax/script/builder/frame.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/relax/script/builder/frame.cc b/src/relax/script/builder/frame.cc index fc2421a131..6d05e05dce 100644 --- a/src/relax/script/builder/frame.cc +++ b/src/relax/script/builder/frame.cc @@ -82,9 +82,8 @@ void FunctionFrameNode::ExitWithScope() { << "A function declaration requires an IRModule frame"; RelaxFrameNode::ExitWithScope(); block_builder->EndScope(); - function = - tvm::relax::Function::CreateEmpty(params, ret_ty.value_or(tvm::relax::AnyType()), - is_pure.value_or(true), DictAttrs(attrs), span); + function = tvm::relax::Function::CreateEmpty(params, ret_ty.value_or(tvm::relax::AnyType()), + is_pure.value_or(true), DictAttrs(attrs), span); if (local) { local_var = tvm::Var(name.value(), tvm::relax::GetType(function.value()), span); } else { @@ -98,8 +97,8 @@ void FunctionFrameNode::ExitWithScope() { << "A Relax function must have a return value. Please use " "`return` to return an Expr"; - Expr body = this->block_builder->Normalize( - tvm::relax::SeqExpr(binding_blocks, output.value(), span)); + Expr body = + this->block_builder->Normalize(tvm::relax::SeqExpr(binding_blocks, output.value(), span)); // if the function is not private, add a global symbol to its attributes if (!is_private.value_or(false) && name.has_value() && !attrs.count(tvm::attr::kGlobalSymbol)) { attrs.Set(tvm::attr::kGlobalSymbol, name.value());
