Skip to content Skip to sidebar Skip to footer

Segmentation Fault: 11 After Back-porting Tensorflow Script From Python 3 To Python 2

After having created a TensorFlow 1.4 model for Python 3, I have now found that Google Cloud ML Engine currently only has support for Python 2.7. Back-porting my Python 3 code at

Solution 1:

There are two issues here: one is about Python 3 support and the other is about the segfault.

Python 3 Support CloudML Engine now supports Python 3, via the 'pythonVersion' field when submitting jobs (see the API reference docs).

If you are using gcloud you will need to create a config file like this (let's name it config.yaml):

trainingInput:
  pythonVersion: "3.5"

When you submit your job, point gcloud to that file, e.g.

gcloud ml-engine jobs submit training --config=config.yaml ...

Segfault This may be caused by running out of memory. Please check the memory usage in the console for that job. That said, if the job dies abruptly, memory usage at the time of failure may not be accurately reflected for that job.

Post a Comment for "Segmentation Fault: 11 After Back-porting Tensorflow Script From Python 3 To Python 2"