Google recently announced Clould ML, https://cloud.google.com/ml/ , and it’s very useful. However, one limitation is that entering / exiting the Tensorflow program must support gs: //.
If we use all APS parsers for reading / writing, this should be OK, as these APIs support gs:// .
However, if we use native file IO APIs such as open , this does not work because they do not understand gs://
For example:
with open(vocab_file, 'wb') as f: cPickle.dump(self.words, f)
This code will not work in Google Cloud ML.
However, changing all of the core file APIs in tensorflow APIs or Google Python APIs is very tedious. Is there an easy way to do this? Any wrappers to support Google storage systems, gs:// on top of my own IO file?
As suggested here, the Pancake week sparse matrix as input? maybe we can use file_io.read_file_to_string('gs://...') , but still it requires significant code modification.
google-cloud-storage tensorflow google-cloud-ml
Sung kim
source share