Skip to content

Commit 27cb10f

Browse files
committed
MAINT: remove debug leftovers
1 parent 69e657a commit 27cb10f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

torch_np/_normalizations.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def wrapped(*args, **kwds):
118118
# loop over positional parameters and actual arguments
119119
lst, dct = [], {}
120120
for arg, (name, parm) in zip(args, sig.parameters.items()):
121-
print(arg, name, parm.annotation)
122121
lst.append(normalize_this(arg, parm))
123122

124123
# normalize keyword arguments
@@ -129,7 +128,6 @@ def wrapped(*args, **kwds):
129128
f"{func.__name__}() got an unexpected keyword argument '{name}'."
130129
)
131130

132-
print("kw: ", name, sig.parameters[name].annotation)
133131
parm = sig.parameters[name]
134132
dct[name] = normalize_this(arg, parm)
135133

@@ -144,19 +142,6 @@ def wrapped(*args, **kwds):
144142
f"{func.__name__}() takes {len(ba.args)} positional argument but {len(args)} were given."
145143
)
146144

147-
# TODO:
148-
# 1. [LOOKS OK] kw-only parameters : see vstack
149-
# 2. [LOOKS OK] extra unknown args -- error out : nonzero([2, 0, 3], oops=42)
150-
# 3. [LOOKS OK] optional (tensor_or_none) : untyped => pass through
151-
# 4. [LOOKS OK] DTypeLike : positional or kw
152-
# 5. axes : live in _impl or in types? several ways of handling them
153-
# 6. [OK, NOT HERE] keepdims : peel off, postprocess
154-
# 7. OutLike : normal & keyword-only, peel off, postprocess
155-
# 8. [LOOKS OK] *args
156-
# 9. [LOOKS OK] consolidate normalizations (_funcs, _wrapper)
157-
# 10. [LOOKS OK] consolidate decorators (_{unary,binary}_ufuncs)
158-
# 11. out= arg : validate it's an ndarray
159-
160145
# finally, pass normalized arguments through
161146
result = func(*ba.args, **ba.kwargs)
162147
return result

0 commit comments

Comments
 (0)