Python 2.7 使用TensorFlow';TFS录音机

Python 2.7 使用TensorFlow';TFS录音机,python-2.7,tensorflow,google-cloud-storage,google-cloud-dataflow,Python 2.7,Tensorflow,Google Cloud Storage,Google Cloud Dataflow,如何使tensorflow的TFRecordWriter能够写入Google存储桶 tf.python_io.TFRecordWriter在写入gs bucket时正在中止: with tf.python_io.TFRecordWriter(filename) as f: f.write(example.SerializeToString()) 给出了错误: > tensorflow/core/platform/cloud/http_request.cc:334] Check f

如何使tensorflow的TFRecordWriter能够写入Google存储桶

tf.python_io.TFRecordWriter在写入gs bucket时正在中止:

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
>tensorflow/core/platform/cloud/http\u request.cc:334]检查失败:
>这->post\u body\u read\uu post\u body\u buffer\uu.size()中止陷阱:6
然后完全关闭python内核。 在写入本地文件时,它确实可以正常工作。 我(一定要)使用python 2.7和tensorflow 1.2,我进一步使用Mac和Google SDK 172.0.0