Skip to content

Commit

Permalink
Clean up dead code and recyle tensor when it is out of scope. (#137)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #137

Clean up dead code:

    removed two not used functions: analyze_ops and analyze_subgraph
    cleaned up other code related to these two functions.

Recycled tensor when it is no longer live: recorded the last op id that refers a tensor id, when replay passing this last op id, recycled the tensor.

With this fix, CMF V0 model can now be replayed. It was out of memory before.

Reviewed By: briancoutinho

Differential Revision: D59937145

fbshipit-source-id: f4b3ff447b09e2b0f2c57863bd84167a37180894
  • Loading branch information
shengfukevin authored and facebook-github-bot committed Jul 24, 2024
1 parent 7b19f58 commit fceef73
Showing 1 changed file with 58 additions and 156 deletions.
Loading

0 comments on commit fceef73

Please sign in to comment.