Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collect_snippets prints warnings to console #2277

Closed
lutzroeder opened this issue Aug 31, 2019 · 0 comments
Closed

collect_snippets prints warnings to console #2277

lutzroeder opened this issue Aug 31, 2019 · 0 comments

Comments

@lutzroeder
Copy link
Member

lutzroeder commented Aug 31, 2019

This code...

from onnx.backend.test.case import collect_snippets
snippets = collect_snippets()

...prints these warnings when run with Python 3.7.4:

./onnx/lib/python3.7/site-packages/onnx/backend/test/case/node/scatter.py:35: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  indices[make_slice(indices, axis, i)].reshape(1, -1)[0]] for i in range(indices.shape[axis])]
./onnx/lib/python3.7/site-packages/onnx/backend/test/case/node/scatter.py:45: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  scattered[idx] = updates[updates_idx]
./onnx/lib/python3.7/site-packages/onnx/backend/test/case/node/scatterelements.py:34: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  indices[make_slice(indices, axis, i)].reshape(1, -1)[0]] for i in range(indices.shape[axis])]
./onnx/lib/python3.7/site-packages/onnx/backend/test/case/node/scatterelements.py:44: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  scattered[idx] = updates[updates_idx]

@lara-hdr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant