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] Modify some passes to not stack overflow on many lets. #7558

Merged
merged 5 commits into from
Mar 3, 2021

Conversation

tkonolige
Copy link
Contributor

I've refactored some recursion on let nodes to be iterative. This fixes stack overflows in big models on #7153.

Passes modified:

  • inline primitives
  • dead code
  • lambda lift

@mbrookhart @zhiics @jroesch

Passes modified:
- inline primitives
- dead code
- lambda lift
Copy link
Contributor

@mbrookhart mbrookhart left a comment

Choose a reason for hiding this comment

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

Nitpick for performance, otherwise LGTM

src/relay/transforms/dead_code.cc Outdated Show resolved Hide resolved
src/relay/transforms/dead_code.cc Outdated Show resolved Hide resolved
@mbrookhart
Copy link
Contributor

Oh, looks like it's not passing dead_code tests.

@zhiics zhiics merged commit 91b6b3f into apache:main Mar 3, 2021
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
…e#7558)

* [RELAY] Modify some passes to not stack overflow on many lets.

Passes modified:
- inline primitives
- dead code
- lambda lift

* one fix

* small fix

* .at -> []

* fix
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request May 11, 2021
…e#7558)

* [RELAY] Modify some passes to not stack overflow on many lets.

Passes modified:
- inline primitives
- dead code
- lambda lift

* one fix

* small fix

* .at -> []

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants