Skip to content

Commit

Permalink
Use seeded random data for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunderberg committed Jan 25, 2023
1 parent c6b1400 commit 70aaff7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/python/relay/test_op_level5.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def test_crop_and_resize(self, target, dev, executor_kind, layout, interpolate_m
else:
raise ValueError(f"Unknown layout: {layout}")

np.random.seed(0)
image_data = np.random.uniform(size=img_shape).astype("float32")

ref_res = tvm.topi.testing.crop_and_resize_python(
Expand Down

0 comments on commit 70aaff7

Please sign in to comment.