Hzfengsy commented on code in PR #14189:
URL: https://github.com/apache/tvm/pull/14189#discussion_r1128959629
##########
src/script/ir_builder/ir/ir.cc:
##########
@@ -69,6 +69,49 @@ void DefFunction(const String& func_name, const BaseFunc&
func) {
}
}
+GlobalVar AddFunction(const BaseFunc& func, String func_name_hint) {
Review Comment:
Could you enhance those two instead of writing two new ones?
Excaully `ValueError: 'I.DeclFunction' must be called immediately under
I.ir_module()` is not necessary in this case
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]