E-TE0003 — shape is not supported for jagged arrays
Error Type |
|
|---|---|
Phase |
type checking the model |
Python exception |
|
Message
Cannot call `.shape()` on jagged arrays.
Possible fix: use `.len_at(0)` to get the length of the first dimension.
Cause
You called .shape() on a jagged array. A jagged array has rows of varying lengths, so it does not have a single rectangular shape.
Fix
Use .len_at(0) to get the length of the first dimension, and subscript the array before calling .len_at(0) again to get inner lengths.