This does not match what `infer_shape()` returns.  You need to fix one or the other.