We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a14dba commit dfdc114Copy full SHA for dfdc114
pytensor/link/pytorch/dispatch/extra_ops.py
@@ -27,7 +27,7 @@ def cumop(x):
27
def pytorch_funcify_Repeat(op, **kwargs):
28
axis = op.axis
29
30
- def repeat(x, repeats, axis=axis):
+ def repeat(x, repeats):
31
return x.repeat_interleave(repeats, dim=axis)
32
33
return repeat
@@ -46,13 +46,7 @@ def pytorch_funcify_Unique(op, **kwargs):
46
return_inverse = op.return_inverse
47
return_counts = op.return_counts
48
49
- def unique(
50
- x,
51
- return_index=return_index,
52
- return_inverse=return_inverse,
53
- return_counts=return_counts,
54
- axis=axis,
55
- ):
+ def unique(x):
56
return torch.unique(
57
x,
58
sorted=True,
0 commit comments