Skip to content

Commit f135442

Browse files
committed
BUG: dtype is effectively keyword-only
1 parent 806b4ac commit f135442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_np/_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def fill_diagonal(a, val, wrap=False):
403403

404404
def trace(a, offset=0, axis1=0, axis2=1, dtype=None, out=None):
405405
arr = asarray(a)
406-
return arr.trace(offset, axis1, axis2, dtype, out=out)
406+
return arr.trace(offset, axis1, axis2, dtype=dtype, out=out)
407407

408408

409409
###### misc/unordered

0 commit comments

Comments
 (0)