mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Summary: The IR Simplifier early exits when working with dtypes that are not safe to reorder. There are some cases where we still want to simplify ops in these dtypes: x + 0, x - 0, x * 0 and x * 1. It's safe to eliminate the op here and it reduces clutter in the expr. Also added a quick simplification of casts which do nothing (their type is the same as the underlying). Pull Request resolved: https://github.com/pytorch/pytorch/pull/37960 Differential Revision: D21457736 Pulled By: nickgg fbshipit-source-id: 40e20a3b55fc1afb2ec50071812238a08bded2ac |
||
|---|---|---|
| .. | ||
| api | ||
| common | ||
| dist_autograd | ||
| jit | ||
| rpc | ||
| tensorexpr | ||
| __init__.py | ||