[go: nahoru, domu]

Skip to content

Commit

Permalink
Rm deprecated np.int reference (fixes #565)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-towns committed Mar 3, 2021
1 parent c6f630a commit 01eacff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autograd/numpy/numpy_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class IntdtypeSubclass(cls):

def wrap_namespace(old, new):
unchanged_types = {float, int, type(None), type}
int_types = {_np.int, _np.int8, _np.int16, _np.int32, _np.int64, _np.integer}
int_types = {_np.int8, _np.int16, _np.int32, _np.int64, _np.integer}
for name, obj in old.items():
if obj in notrace_functions:
new[name] = notrace_primitive(obj)
Expand Down

0 comments on commit 01eacff

Please sign in to comment.