Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information