()
| 96 | |
| 97 | |
| 98 | def test_reduce(): |
| 99 | @trace(symbolic=True, capture_as_const=True) |
| 100 | def fwd(data): |
| 101 | x = data.sum(axis=2) |
| 102 | x = x.mean(axis=1) |
| 103 | return x |
| 104 | |
| 105 | data = Tensor(np.random.random((1, 32, 32))) |
| 106 | result = fwd(data) |
| 107 | check_pygraph_dump(fwd, [data], [result]) |
| 108 | |
| 109 | |
| 110 | def test_typecvt(): |
nothing calls this directly
no test coverage detected