Skip to content

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

@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