Closed grahitr closed 1 year ago
np.isscalar works in intended way only on the numeric, string and buffer objects, https://numpy.org/doc/stable/reference/generated/numpy.isscalar.html.
IMO, it should be replaced with a custom function that could check if is_singleton
.