I got the step of coding one hot code passed.
However, when running subsequent steps we are not supposed to change, I got the following error. It complains about the shape of input tensor.
I checked the forum and coursera discussion forum history There is still no clear answer.
can someone help out? Thanks
error message…
“ValueError: Cannot reshape a tensor with 6 elements to shape [4] (4 elements) for ‘{{node Reshape}} = Reshape[T=DT_FLOAT, Tshape=DT_INT32](one_hot, Reshape/shape)’ with input shapes: [6], [1] and with input tensors computed as partial shapes: input[1] = [4]”