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

[Relay] Make check stricter: disallow inserting function with free vars into module. #6313

Merged
merged 2 commits into from
Aug 22, 2020

Conversation

MarisaKirisame
Copy link
Contributor

Previously it was warning, but it had been the source of many bug in developing. This will check those bugs as soon as possible.
@jroesch @zhiics @junrushao1994 can you guys review?

@junrushao
Copy link
Member

I agree. If there is no specific reason, we should make the check as restrictive and possible to make sure we fail early. I was wondering why it was just a warning before? Any specific reasons?

@MarisaKirisame
Copy link
Contributor Author

@junrushao1994 ppl was adding graph to irmodule. i add check to make it warning but tq say we should wait for a big version to make them error.

@junrushao
Copy link
Member

I see. I am for this particular change. Also @tqchen what do you think?

@junrushao
Copy link
Member

Looks like it cannot pass CI because there are some test cases that free variables exist...

@zhiics
Copy link
Member

zhiics commented Aug 20, 2020

Creating a function and binding those free vars should fix some of the failing tests?

lint

lint

fix test

fix test
@MarisaKirisame
Copy link
Contributor Author

@zhiics @junrushao1994 the CI now pass. care to give some review?

@junrushao
Copy link
Member

Thanks for the discussion today!

@zhiics zhiics merged commit aae096a into apache:master Aug 22, 2020
@zhiics
Copy link
Member

zhiics commented Aug 22, 2020

Thanks @MarisaKirisame @junrushao1994

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
…rs into module. (apache#6313)

* save

lint

lint

fix test

fix test

* fix
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
…rs into module. (apache#6313)

* save

lint

lint

fix test

fix test

* fix
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
…rs into module. (apache#6313)

* save

lint

lint

fix test

fix test

* fix
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Sep 2, 2020
…rs into module. (apache#6313)

* save

lint

lint

fix test

fix test

* fix
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 3, 2020
…rs into module. (apache#6313)

* save

lint

lint

fix test

fix test

* fix
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.

4 participants