Skip to content

Commit

Permalink
add check on id for RawReducer
Browse files Browse the repository at this point in the history
  • Loading branch information
kshpv committed Nov 14, 2024
1 parent 0ddf450 commit ffbff3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/common/experimental/test_reducers_and_aggregators.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def test_other_reducers(self, reducer_cls, input_data):
else:
assert len(reduced_input) == 1
assert fns.allclose(reduced_input[0], tensor_data)
assert id(tensor_data) != id(reduced_input[0])

@pytest.mark.parametrize("reducer_cls", [RawReducer, ShapeReducer])
def test_other_reducers_name_hash_equal(self, reducer_cls):
Expand Down

0 comments on commit ffbff3f

Please sign in to comment.