Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Aditya Goel <48102515+adityagoel4512@users.noreply.github.com>
  • Loading branch information
neNasko1 and adityagoel4512 authored Jan 10, 2025
1 parent 0563eee commit c70ff40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ndonnx/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def matrix_transpose(x):
return _unary(x.dtype._ops.matrix_transpose, x)


def tensordot(x, y, axes=2):
def tensordot(x, y, /, *, axes=2):
if (out := x.dtype._ops.tensordot(x, y, axes)) is not NotImplemented:
return out
if (out := y.dtype._ops.tensordot(x, y, axes)) is not NotImplemented:
Expand Down Expand Up @@ -640,7 +640,7 @@ def permute_dims(x, axes):
)


def repeat(x, repeats, axis=None):
def repeat(x, repeats, /, *, axis=None):
if (out := x.dtype._ops.repeat(x, repeats, axis)) is not NotImplemented:
return out
raise UnsupportedOperationError(f"Unsupported operand type for repeat: '{x.dtype}'")
Expand Down

0 comments on commit c70ff40

Please sign in to comment.