Error in grading C1W1

I did the exercise and got not errors in the execution of the commands in the code, but when I submit the exercise I receive this error:

Cell #2. Can’t compile the student’s code. Error: NameError(“name ‘tf’ is not defined”,)

The problem in the code is in the second cell:

print(tf.version)


NameError Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 print(tf.version)

NameError: name ‘tf’ is not defined

Can someone help me?

Hi Federica !
Hope you are doing well. This assignment doesn’t require you to use TensorFlow anywhere. No cell comes with a tensorflow module. Please don’t add extra cells in the notebook. If you do add cells to experiment something, please make sure to delete it before submitting so that grader doesn’t throw any errors. Delete that cell and submit it. It will work.
Regards,
Nithin

1 Like