E-TE0019 — Tensor literal length differs from declared first dimension
Error Type |
|
|---|---|
Phase |
compiling the problem into an OMMX instance |
Python exception |
|
Message
The tensor literal must have {expected} element(s) along its first dimension, but has {actual}
Cause
While compiling the problem with concrete data, a tensor literal was evaluated against a type whose first dimension has a fixed length, but the literal has a different number of elements along that dimension.
Fix
Make the literal’s length match the declared first dimension, or fix the declared shape to match the data you provide.