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

Do not mutate GlobalVar's checked_type field. #2026

Merged
merged 2 commits into from
Oct 29, 2018

Conversation

jroesch
Copy link
Member

@jroesch jroesch commented Oct 29, 2018

Change the type checker to no longer mutate the checked_type field of tvm::relay::GlobalVar. The checked_type field is suppose to enable populating results of local analysis to the entire AST. The problem is tvm::relay::GlobalVar's are shared across the entire system, and duplicating or mutating them causes challenges.

One example is demonstrated in attached test case.

@tqchen tqchen merged commit 1c87e00 into apache:master Oct 29, 2018
eqy pushed a commit to eqy/tvm that referenced this pull request Oct 29, 2018
eqy pushed a commit to eqy/tvm that referenced this pull request Oct 29, 2018
eqy pushed a commit to eqy/tvm that referenced this pull request Oct 29, 2018
FrozenGene pushed a commit to FrozenGene/tvm that referenced this pull request Dec 27, 2018
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Feb 20, 2019
@jroesch jroesch deleted the fix-resolve-gvar branch February 4, 2021 04:36
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