(fn)
| 637 | mge_x = megengine.tensor(np_x) |
| 638 | |
| 639 | def run_test(fn): |
| 640 | out_ref = fn(np_x) |
| 641 | if symbolic is not None: |
| 642 | fn = jit.trace(symbolic=symbolic)(fn) |
| 643 | for i in range(3): |
| 644 | out = fn(mge_x) |
| 645 | np.testing.assert_equal(out.numpy(), out_ref) |
| 646 | |
| 647 | run_test(lambda x: x[0:1, :, :]) |
| 648 | run_test(lambda x: x[1:100:2, :, :]) |
no test coverage detected