C3W3 Exercise 1


Hi @Ayush_Sharma10

TextVectorization layer expects input with either a 1D tensor or a last dimension of 1, but the input tensor has the shape (None, None), that means it has two undefined dimensions. Make sure your input is a 1D tensor (batch_size,)or reshape it so the last dimension is 1.

Also, verify that your dataset pipeline correctly provides raw text data instead of improperly shaped tensors.

Hope it helps! Feel free to ask if you need further assistance.

1 Like

@Ayush_Sharma10

is your issue resolved?

yes

2 Likes

please let learners know where was the mistake and how you resolved your issue, so other learners find your post helpful when encountering similar issue

thanks. solved the issue

You’re welcome! happy to help :raised_hands: