-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
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? |
@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. |
I see. I am for this particular change. Also @tqchen what do you think? |
Looks like it cannot pass CI because there are some test cases that free variables exist... |
Creating a function and binding those free vars should fix some of the failing tests? |
805bbc8
to
b3ccdbe
Compare
@zhiics @junrushao1994 the CI now pass. care to give some review? |
Thanks for the discussion today! |
Thanks @MarisaKirisame @junrushao1994 |
…rs into module. (apache#6313) * save lint lint fix test fix test * fix
…rs into module. (apache#6313) * save lint lint fix test fix test * fix
…rs into module. (apache#6313) * save lint lint fix test fix test * fix
…rs into module. (apache#6313) * save lint lint fix test fix test * fix
…rs into module. (apache#6313) * save lint lint fix test fix test * fix
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?