Grading failed when submitting the assignment

Hi @SREENIVAS_JAWALKAR

99% of the time when you pass the unit tests (and all your outputs match the expected outputs) but grading of the assignment fails, it is one of those reasons:

Important Note on Submission to the AutoGrader

Before submitting your assignment to the AutoGrader, please make sure you are not doing the following:

  1. You have not added any extra print statement(s) in the assignment.
  2. You have not added any extra code cell(s) in the assignment.
  3. You have not changed any of the function parameters.
  4. You are not using any global variables inside your graded exercises. Unless specifically instructed to do so, please refrain from it and use the local variables instead.
  5. You are not changing the assignment code where it is not required, like creating extra variables.

80% of these are:

  1. You are not using any global variables inside your graded exercises. Unless specifically instructed to do so, please refrain from it and use the local variables instead.

For example, if you have local variable named embeddings then do not use global variable named word_embeddings. (Here is a Video what is being meant by global vs. local variables and the playground to experiment.)


Your case:

Your screenshot shows that you fail the data_generator function. So, please check that:

  • you are not using train_Q1 instead of Q1 variable
  • you are not using train_Q2 instead of Q2 variable
  • you are not using 2 instead of batch_size variable
  • you are not using 1 instead of pad variable
  • you are not using True instead of shuffle variable

Please, let me know if you still fail the data_generator grading.
Cheers