写谷歌存储桶与TensorFlow的TFRecordWriter(Writing to Google

2019-09-29 23:26发布

我怎么可以书面形式向谷歌存储桶进行tensorflow的TFRecordWriter工作?

写GS桶时tf.python_io.TFRecordWriter被中止:

with tf.python_io.TFRecordWriter(filename) as f:
    f.write(example.SerializeToString())

给出了错误:

> tensorflow/core/platform/cloud/http_request.cc:334] Check failed:
> that->post_body_read_ <= that->post_body_buffer_.size()  Abort trap: 6

然后完全关闭蟒蛇内核。 写入到本地文件时,它不会正常工作。 我使用python 2.7(绑定)和tensorflow 1.2,我还使用Mac和谷歌SDK 172.0.0。

文章来源: Writing to Google storage buckets with TensorFlow's TFRecordWriter