()
| 89 | |
| 90 | |
| 91 | def test_input(): |
| 92 | if sys.version_info >= (3, 0): |
| 93 | test_shape([4]) |
| 94 | test_shape([2, 3]) |
| 95 | else: |
| 96 | data = list(range(4)) |
| 97 | m = create_buffer('f', data, [4]) |
| 98 | a1 = migraphx.argument(m) |
| 99 | a2 = migraphx.argument(bytearray(a1)) |
| 100 | check_shapes(a2, m) |
| 101 | assert_eq(a1.tolist(), m.tolist()) |
| 102 | |
| 103 | |
| 104 | def test_output(): |
no test coverage detected