Skip to content

Conversation

@yongwww
Copy link
Member

@yongwww yongwww commented Aug 8, 2023

There is a dependency of IRModule in the current Target implementation: target.h -> module.h. This pull request aims to decouple the dependency."

@tvm-bot
Copy link
Collaborator

tvm-bot commented Aug 8, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to auto-tag found, no teams are specified in PR title See #10317 for details

Generated by tvm-bot

@yongwww yongwww force-pushed the remove_module_dep_on_target branch from 1c60062 to e696b34 Compare August 9, 2023 02:19
* \param target Target to filter on or retrieve arguments from
* \return Runtime Module containing compiled functions
*/
using FTVMTIRToRuntime = tvm::runtime::TypedPackedFunc<runtime::Module(IRModule, Target)>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the FTVMTIRToRuntime definition should be in include/tvm/tir/transform.h instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the inputs! I changed the code to directly use "using FTVMTIRToRuntime = tvm::runtime::TypedPackedFunc<runtime::Module(IRModule, Target)>;" in target.cc & codegen.cc.

@yongwww yongwww force-pushed the remove_module_dep_on_target branch from ddd9168 to 0e268d1 Compare August 10, 2023 20:11
@yongwww
Copy link
Member Author

yongwww commented Aug 11, 2023

cc: @tqchen @junrushao

@tqchen tqchen merged commit 81fd9f3 into apache:main Aug 11, 2023
@yongwww yongwww deleted the remove_module_dep_on_target branch August 14, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants