Closed maxmynter closed 6 months ago
as the default can be an array. If that is the case the previous implementation fails in the if clause as the truth value of an array is ambiguous.
Previously the following would fail:
@nnbench.parametrize(({"a": np.zeros((10**5,))},)) def matsquare(a): return a @ a
as the default can be an array. If that is the case the previous implementation fails in the if clause as the truth value of an array is ambiguous.
Previously the following would fail: