Commits


Vincent Wang authored and GitHub committed 17f0ffd1c82
Support More Cases in NoOpElimination (#13460) Current NoOpElimination can support only Add node. This PR adds support for: x-0, x*1, 1*x and x/1 besides x+0 and 0+x. With this PR, all Div(x,1) and their gradients (also Div(x,1)) in Huggingface's diffusers model can be removed, which takes ~1% of compute time in total previously.