Shape & Dtype: Contracts Between Ops
Every tensor has a shape
and dtype
. Mismatches cause errors or implicit broadcasting
. TensorFlow validates compatibility so MatMul
doesn’t try to multiply [3,4]
by [5,6]
.
Rule of thumb: when something breaks, check shapes first, then types.