reading files in google cloud machine learning

后端 未结 1 1533
清歌不尽
清歌不尽 2020-12-16 04:32

I tried to run tensorflow-wavenet on the google cloud ml-engine with gcloud ml-engine jobs submit training but the cloud job crashed when it was trying to read

相关标签:
1条回答
  • 2020-12-16 05:16

    Python's open function cannot read files from GCS. You will need to use a library capable of doing so. TensorFlow includes one such library:

    import tensorflow as tf
    from tensorflow.python.lib.io import file_io
    
    with file_io.FileIO(args.wavenet_params, 'r') as f:
      wavenet_params = json.load(f)
    
    0 讨论(0)
提交回复
热议问题