codebasics / deep-learning-keras-tf-tutorial

Learn deep learning with tensorflow2.0, keras and python through this comprehensive deep learning tutorial series. Learn deep learning from scratch. Deep learning series for beginners. Tensorflow tutorials, tensorflow 2.0 tutorial. deep learning tutorial python.
https://www.youtube.com/playlist?list=PLeo1K3hjS3uu7CxAacxVndI4bE_o3BDtO
852 stars 1.86k forks source link

Sequential model embeddings layer input length error #23

Open theraghavjuneja opened 8 months ago

theraghavjuneja commented 8 months ago

I replaced the input_length with the input_shape. (Since TF is not allowing to use input_length ). On reading documentation, I found that original code was right too as given in the demo , but it is not working anymore in any of the coding editors in tensorflow version>2 . So , I just replicated the meaning of inout_length with corresponding input_shape of a 1-D vector (max_length which is 4,) shape