Skip to content

Commit

Permalink
Add implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
neNasko1 committed Jan 12, 2025
1 parent 80eefd0 commit 775a74d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ndonnx/_core/_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ def permute_dims(self, x, axes) -> ndx.Array:
def reshape(self, x, shape, *, copy=None) -> ndx.Array:
return NotImplemented

def repeat(self, x, repeats, axis=None) -> ndx.Array:
return NotImplemented

def roll(self, x, shift, axis) -> ndx.Array:
return NotImplemented

Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_core/_shapeimpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def expand_dims(self, x, axis):
)
)

def repeat(self, x, repeats, axis):
def repeat(self, x, repeats, axis=None):
if axis is None:
x = ndx.reshape(x, [-1])
axis = 0
Expand Down

0 comments on commit 775a74d

Please sign in to comment.