Skip to content

Do not mutate GlobalVar's checked_type field.#2026

Merged
tqchen merged 2 commits intoapache:masterfrom
jroesch:fix-resolve-gvar
Oct 29, 2018
Merged

Do not mutate GlobalVar's checked_type field.#2026
tqchen merged 2 commits intoapache:masterfrom
jroesch:fix-resolve-gvar

Conversation

@jroesch
Copy link
Copy Markdown
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