E-TE0503 — Invalid array shape
Error Type |
|
|---|---|
Phase |
converting values while building or compiling the model |
Python exception |
|
Message
Invalid array shape while constructing an array: {...}.
Possible fix: ensure the data matches the declared shape.
Cause
An n-dimensional array could not be constructed or reshaped because the requested shape is inconsistent with the data — for example, the number of elements does not match the product of the dimensions. The detail after the colon describes the specific shape problem.
Fix
Check that the array data is consistent with the shape declared for it: the number of elements must match the product of the dimensions.