(fn1, fn2, args)
| 243 | |
| 244 | # Test that `fn1` and `fn2` return the same result, given the same arguments `args`. |
| 245 | def test_fns(fn1, fn2, args): |
| 246 | out1 = fn1(*args) |
| 247 | out2 = fn2(*args) |
| 248 | return torch.allclose(out1, out2) |
| 249 | |
| 250 | |
| 251 | inp1 = torch.randn(5, 5) |
no outgoing calls
no test coverage detected