Section 8: ValueError: logits
and labels
must have the same shape, received ((None, 15, 1) vs (None,)).
#363
-
In Section 8: Introduction to NLP Fundamentals in TensorFlow I am running Model 1: Feed-forward neural network (dense model) and getting
Original code:
I found the fix for this was to use this code to build the model:
or use this code as mentioned in the offical course github notebook https://github.com/mrdbourke/tensorflow-deep-learning/blob/main/video_notebooks/08_introduction_to_nlp_in_tensorflow_video.ipynb:
My question is: How in the video does @mrdbourke not get this error when training the model without a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If there are minor errors in the video that can't be explained, the course notebooks are the best place to reference (like what you've done). The videos will try to have notes/be updated where possible if something happens like what you found but due to slight changes in the code it can't always guarantee to best the exact right answer. However, the notebooks will be kept up to date & if something major changes, the videos will be noted/updated too. |
Beta Was this translation helpful? Give feedback.
Hey @Raunak-Singh-Inventor,
If there are minor errors in the video that can't be explained, the course notebooks are the best place to reference (like what you've done).
The videos will try to have notes/be updated where possible if something happens like what you found but due to slight changes in the code it can't always guarantee to best the exact right answer.
However, the notebooks will be kept up to date & if something major changes, the videos will be noted/updated too.