I am working on a project where I have to use TensorFlow and Keras modules on my Windows10 machine. I first created my virtual env using anaconda prompt
$ conda create -n tensor-env
$ conda activate tensor-env
After this, I have installed some python libraries that I need to use.
When I do $conda list I can see that TensorFlow is installed (see image).
But after this and when I try to use it on my .py files I get an error message saying that it can't find the module (see image).
Am I missing something here? I've tried many tutorials so far and I can't see how to fix this problem, am I missing CPU TensorFlow installation or something?
Thank you everyone for reading it :)
conda show tensorflowloss = keras.losses.SparseCategorialCrossentropy(from_logits=True)saying that module 'tensorflow.keras.losses' has no attribute 'SparseCategoricalCrossentropy'. Any ideia how to solve it? i already had this error weeks ago