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

np.array([object()]) fails #552

Open
Gattocrucco opened this issue Apr 21, 2020 · 0 comments · May be fixed by #554
Open

np.array([object()]) fails #552

Gattocrucco opened this issue Apr 21, 2020 · 0 comments · May be fixed by #554
Assignees
Labels
bug This item is a bug that needs to be investigated or fixed

Comments

@Gattocrucco
Copy link

from autograd import numpy as np
x = object()
print(repr(np.array([x])))

Result:

array([array(<object object at 0x11360daf0>, dtype=object)], dtype=object)

It should be:

array([<object object at 0x11360daf0>], dtype=object)

Python version:

Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18) 
[Clang 6.0 (clang-600.0.57)] on darwin

Autograd version: 1.3 (installed with pip)

Gattocrucco added a commit to Gattocrucco/autograd that referenced this issue Apr 23, 2020
@agriyakhetarpal agriyakhetarpal added the bug This item is a bug that needs to be investigated or fixed label Dec 2, 2024
@agriyakhetarpal agriyakhetarpal self-assigned this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This item is a bug that needs to be investigated or fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@Gattocrucco @agriyakhetarpal and others