Skip to content

Commit

Permalink
experiment apache#2 config
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Convey committed Jun 13, 2022
1 parent a428695 commit a799104
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/python/contrib/test_hexagon/benchmark_maxpool2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,6 @@ def test_maxpool2d_nhwc(
mem_scope="global.vtcm",
)

c_hexagon = allocate_hexagon_array(
hexagon_session.device,
tensor_shape=[N,H,W,C],
axis_separators=[],
dtype="int8",
mem_scope="global.vtcm",
)

#breakpoint()

print('AAAAA: a_hexagon.numpy()[0,0,0,0,0,0,0]={}'.format(a_hexagon.numpy()[0,0,0,0,0,0,0]))
Expand All @@ -202,14 +194,6 @@ def test_maxpool2d_nhwc(
time.sleep(5)
print('BBBBB {}: a_hexagon.numpy()[0,0,0,0,0,0,0]={}'.format(i, a_hexagon.numpy()[0,0,0,0,0,0,0]))

# This is just to help with debugging...
c_np = np.zeros(ref_output.shape).astype("int8")
c_hexagon.copyfrom(c_np)

mod(a_hexagon, c_hexagon)

tvm.testing.assert_allclose(ref_output, c_hexagon.numpy(), rtol=1e-4)


if __name__ == "__main__":
sys.exit(pytest.main(sys.argv))

0 comments on commit a799104

Please sign in to comment.