Skip to content Skip to sidebar Skip to footer

Python Code Using Keras Crashes On Call To Model.fit With No Error Code

I have successfully implemented and run an autoencoder on image data (MNIST digits). I use Spyder through Anaconda Navigator. I'm running Python 3.7.1. I constructed a simple CNN f

Solution 1:

After running the code in a command shell rather than Spyder, I captured the error and identified a related question that had already been answered.

Based on the discussion in: Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized I removed tensorflow using conda remove tensorflow and then reinstalled tensorflow and keras using

conda install -c tensorflow

and

conda install -c keras

I then reran the code and everything worked in both the command shell and in Spyder.

Post a Comment for "Python Code Using Keras Crashes On Call To Model.fit With No Error Code"