C3W1_Practice_Assignment, Getting error in data preparation in Exercise 7

When creating a post, please add:

  • Week # must be added in the tags option of the post.
  • Link to the classroom item you are referring to:
  • Description (include relevant info but please do not post solution code or your entire notebook)
    I am getting error while running the cell. I have passed all unittest in the practice assignment without any error.

I could not understand where is the error. Thanks for help.

(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not. You can share the errors you get)

Hi @Parteek

Probably the cause for the error is that < sign should be <= (when you reach the max length tweet, your padded_tensor becomes 0 (int) instead of the whole sequence without padding).

Sharing your solutions is against the code of conduct, so please remove your first image.

Cheers

Thanks @arvyzukai , I have already solved it and yes, you are correct. The = sign was missing.