E-TE0020 — Invalid axis
Error Type |
|
|---|---|
Phase |
type checking the model |
Python exception |
|
Message
Invalid axis {axis}: the array has only {ndim} dimension(s)
Cause
An axis argument to a fold (e.g. jm.sum(..., axis=...)) or roll operation is greater than or equal to the array’s number of dimensions.
Fix
Use axes strictly smaller than the array’s ndim: for a 2-dimensional array, valid axes are 0 and 1.