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

fix duplicated symbol bug in external codegen #7383

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

yhj050806
Copy link
Contributor

@yhj050806 yhj050806 commented Feb 1, 2021

the original purpose of the code is that the same symbol_name can only be registered once for each external codegen。

but the actual result is that the name of symbol_name can’t be same with code_gen_name, for example, we can’t set global_symbol name with “ccompiler” for relay.ext.ccompiler.

and the code logic is error, because cached_symbol.count(sn) is always 0, so the if sentence is always false。

cc @zhiics

Copy link
Member

@zhiics zhiics left a comment

Choose a reason for hiding this comment

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

lgtm

@zhiics zhiics merged commit 2365c7e into apache:main Feb 1, 2021
@yhj050806 yhj050806 deleted the fix_duplicated_symbol_bug branch February 1, 2021 07:32
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 11, 2021
Co-authored-by: 袁航剑 <yuanhangjian@bytedance.com>
electriclilies pushed a commit to electriclilies/tvm that referenced this pull request Feb 18, 2021
Co-authored-by: 袁航剑 <yuanhangjian@bytedance.com>
Lokiiiiii pushed a commit to Lokiiiiii/tvm that referenced this pull request Mar 2, 2021
Co-authored-by: 袁航剑 <yuanhangjian@bytedance.com>
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2021
Co-authored-by: 袁航剑 <yuanhangjian@bytedance.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants