Skip to content

Commit dfdc114

Browse files
committed
Removed kwargs in Repeat and Unique Ops impl. in PyTorch
1 parent 9a14dba commit dfdc114

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pytensor/link/pytorch/dispatch/extra_ops.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def cumop(x):
2727
def pytorch_funcify_Repeat(op, **kwargs):
2828
axis = op.axis
2929

30-
def repeat(x, repeats, axis=axis):
30+
def repeat(x, repeats):
3131
return x.repeat_interleave(repeats, dim=axis)
3232

3333
return repeat
@@ -46,13 +46,7 @@ def pytorch_funcify_Unique(op, **kwargs):
4646
return_inverse = op.return_inverse
4747
return_counts = op.return_counts
4848

49-
def unique(
50-
x,
51-
return_index=return_index,
52-
return_inverse=return_inverse,
53-
return_counts=return_counts,
54-
axis=axis,
55-
):
49+
def unique(x):
5650
return torch.unique(
5751
x,
5852
sorted=True,

0 commit comments

Comments
 (0)