pytorch
f38f9dfb - When tracing SymInts, peephole optimize multiply by one (#85261)

Commit
2 years ago
When tracing SymInts, peephole optimize multiply by one (#85261) This shows up a lot in graphs, so it is nice to not bother recording useless info. On pytorch_BERT, this optimization doesn't seem to speed anything up, so it's mostly for cleanliness. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/85261 Approved by: https://github.com/wconstab
Author
Committer
Parents
Loading