np.array([object()]) fails
Author: GattocruccoCreated Apr 21, 2020Updated Dec 2, 2024
Labelsbug
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 darwinAutograd version: 1.3 (installed with pip)
Source: HIPS/autograd