Grade error: Sorry, your submission was incorrect. Please try again. 'tf' not found in <Module l.0 at 0x7fa03200e0b8>

2021-12-05_18h34_35

Hi @xiayuhu!

What is the output of tf.__version__ for you?

Hi @yurij, @chris.favila This is a bug in the grader.
import tensorflow as tf is probably missing. The notebook works in the coursera environment. It’s just that the grader fails. Please fix this.

Ping +1 @agparth . Could someone please look into this? Refreshing the lab doesn’t help get rid of this grader error

Sorry, your submission was incorrect. Please try again. ‘tf’ not found in <Module l.0 at 0x7fca3b76dfd0>.

Hi,
Can you send your notebook (DM me) so that we can check?
It maybe possible that it just used import tensorflow and accidentally there might be usage of tf. something in the submitted code which is causing this.

1 Like

@agparth Pointed out this link Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera according to which you should use sparse_categorical_crossentropy as the loss instead of tf.keras.losses.sparsecategoricalcrossentropy() to get rid of the grader error.

1 Like