hello. I can run my code in coursera notebook but when I run the code locally in my computer I get this:
AssertionError: Wrong values when training=True.
DLS course 4
W2A1
how can I fix this??
If you haven’t done so already, you could start with reviewing some of these…
There are lots of version dependencies among multiple components. If you go further, you will most likely encounter the another version issue.
Basically, Coursera platform uses old version of tensorflow and python. So, first of all, you may want to try with Tensorflow 2.3 which is the same version as a Coursera platform. (In some exercise, they use different versions, though…) Some of initializers seem to provide different values depending to the version. (Some exercise uses values which can be obtained in the current running environment, but some has fixed values to be compared.)
In my local environment, it works with TensorFlow 2.3/Python 3.7. but does not work with Tensorflow 2.9/Python 3.8.
If you go further, you will encounter similar problems. In that case, you may be better to check the version of installed services in Coursera platform (with !pip list in a notebook cell) if you find different behaviors in your local environment.