Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Runtime] Fix Can't "query_imports" Bug of VM Executable #14656

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

Johnson9009
Copy link
Contributor

@Johnson9009 Johnson9009 commented Apr 18, 2023

This "LOG(FATAL)" will error out when the function isn't found in “executable”, so it will prevent the recursive query the function in the imported modules of "executable".

For example, if the module hierarchy is something like below.
executable
|---LLVMModuleNode
|___NPUModuleNode

This bug will cause we can't get the function in NPUModuleNode by the call "executalbe.get_function("npu_func1", query_imports=True)".

From Arm China.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Apr 18, 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.

Generated by tvm-bot

@Johnson9009
Copy link
Contributor Author

@junrushao @Hzfengsy @tqchen Please help to review, this is so little bug fix, thanks.

@junrushao
Copy link
Member

The PR looks good to me. Retriggering CI

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

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

LGTM!

@junrushao junrushao merged commit 7c97c4e into apache:main Apr 20, 2023
@Johnson9009 Johnson9009 deleted the vm_exec branch April 24, 2023 09:52
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.

3 participants