You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix for AxisError with numpy 1.18
FFN fails with
`numpy.AxisError: axis 4 is out of bounds for array of dimension 4`
when numpy 1.18 is used.
See the 1.18 note for numpy.expand_dims at
https://numpy.org/doc/stable/reference/generated/numpy.expand_dims.html
```
axis int or tuple of ints
Position in the expanded axes where the new axis (or axes) is placed.
Deprecated since version 1.13.0: Passing an axis where axis > a.ndim will be treated as axis == a.ndim, and passing axis < -a.ndim - 1 will be treated as axis == 0. This behavior is deprecated.
Changed in version 1.18.0: A tuple of axes is now supported. Out of range axes as described above are now forbidden and raise an AxisError.
```
* Fix import error
Training fails since Optional was not imported
I got the following error, when I tried to run FFN training with numpy 1.18:
numpy.AxisError: axis 4 is out of bounds for array of dimension 4
Looks like it is due to a recent change in numpy.expand_dims. See https://numpy.org/doc/stable/reference/generated/numpy.expand_dims.html.
Here is a patch to fix the error:
The text was updated successfully, but these errors were encountered: