(a1, a2)
| 49 | # operations that contribute to the single output value of the pattern |
| 50 | # are considered |
| 51 | def pattern(a1, a2): |
| 52 | val1 = torch.neg(a1) |
| 53 | return torch.cat([val1, a2]).sum() |
| 54 | |
| 55 | # Define the replacement (same rules as the pattern) |
| 56 | def replacement(w1, w2): |
nothing calls this directly
no outgoing calls
no test coverage detected