Skip to content

Commit

Permalink
#11512: Reduce argmax sweep number of parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
amalbasaTT committed Nov 1, 2024
1 parent 179f49b commit c53b24e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
6 changes: 3 additions & 3 deletions tests/sweep_framework/sweeps/reduction/argmax/argmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
# Developers can create their own generator functions and pass them to the parameters as inputs.
parameters = {
"nightly": {
"input_shape": gen_shapes([1, 1, 1, 1], [2, 6, 128, 128], [1, 1, 1, 1], 128)
+ gen_shapes([1, 1, 1], [6, 128, 128], [1, 1, 1], 128)
+ gen_shapes([1, 1], [128, 128], [1, 1], 128),
"input_shape": gen_shapes([1, 1, 1, 1], [2, 6, 128, 128], [1, 1, 1, 1], 32)
+ gen_shapes([1, 1, 1], [6, 128, 128], [1, 1, 1], 32)
+ gen_shapes([1, 1], [128, 128], [1, 1], 32),
"dim": [0, 1, 2, 3, None],
"input_a_dtype": [ttnn.bfloat16, ttnn.bfloat8_b],
"input_layout": [ttnn.ROW_MAJOR_LAYOUT, ttnn.TILE_LAYOUT],
Expand Down
17 changes: 0 additions & 17 deletions tests/sweep_framework/sweeps/reduction/topk/topk.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,3 @@ def run(
)

return [(passing, output_str), e2e_perf]


from tests.sweep_framework.framework.permutations import *

for suite in parameters.keys():
device_id = 0
device = ttnn.open_device(device_id=device_id)
suite_vectors = list(permutations(parameters[suite]))
print(len(suite_vectors))
for vector in suite_vectors:
if invalidate_vector(vector)[0]:
continue
passed, _ = run(**vector, device=device)
if passed[0] != True:
print(passed)

ttnn.close_device(device)

0 comments on commit c53b24e

Please sign in to comment.