Skip to content

Commit

Permalink
Fix typo in simd_reduce_mean
Browse files Browse the repository at this point in the history
  • Loading branch information
rizhao-msft committed Feb 27, 2024
1 parent d7d12d9 commit b601f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mx/simd_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def simd_reduce_mean(in1, dim=None, keepdim=False, mx_specs=None):
mx_assert_test(mx_specs)
if mx_specs is None:
if dim is None:
return torch_sum(in1)
return torch_mean(in1)
else:
return torch_mean(in1, dim, keepdim=keepdim)

Expand Down

0 comments on commit b601f4e

Please sign in to comment.