The only changes to the notebook above were that the following lines were added to the beginning of the notebook to change to 'cpu' mode, and instances of "import keras" and "from keras import ..." were modified to "from tensorflow import keras" and "from tensorflow.keras import ...":
from tensorflow.python.compiler.mlcompute import mlcompute;
mlcompute.set_mlc_device(device_name='cpu')
Python3 exits with "segmentation fault". It crashes during the execution of this line:
It only crashes when running tensorflow in 'cpu' mode AND when batch_size=64. If it's changed to 'gpu' mode, or if the batch_size is changed to 32, then it works fine.
On a Macbook Pro 16 (16 GB RAM, 2.3 Ghz 8-core, AMD 5500M 4GB), running this basic MNIST convnet Jupyter-lab notebook crashes python:
https://github.com/fchollet/deep-learning-with-python-notebooks/blob/master/5.1-introduction-to-convnets.ipynb
The only changes to the notebook above were that the following lines were added to the beginning of the notebook to change to 'cpu' mode, and instances of "import keras" and "from keras import ..." were modified to "from tensorflow import keras" and "from tensorflow.keras import ...":
Python3 exits with "segmentation fault". It crashes during the execution of this line:
It only crashes when running tensorflow in 'cpu' mode AND when batch_size=64. If it's changed to 'gpu' mode, or if the batch_size is changed to 32, then it works fine.