pytorch
857ed2d7 - [Inductor] Replace graph.eliminate_dead_code() with graph.erase_node() in Permute Fusion (#91014)

Commit
2 years ago
[Inductor] Replace graph.eliminate_dead_code() with graph.erase_node() in Permute Fusion (#91014) Summary: As FX passes of permute fusion run before functionalization, it might be safer to replace `graph.eliminate_dead_code()` with `graph.erase_node()` to avoid cases that `graph.eliminate_dead_code()` might remove mutation nodes Test Plan: Unit Tests & CI Reviewed By: jansel Differential Revision: D41904755 Pull Request resolved: https://github.com/pytorch/pytorch/pull/91014 Approved by: https://github.com/jansel
Author
Committer
Parents
Loading