【发布时间】:2019-08-04 15:24:24
【问题描述】:
我正在使用 Google Cloud ML-Engine 使用 Python。我发现的文档表明数据存储应该使用 Buckets 和 Blob 来完成
https://cloud.google.com/ml-engine/docs/tensorflow/working-with-cloud-storage
但是,我的大部分代码及其调用的库都适用于文件。我可以在我的 ml 引擎代码中以某种方式将 Google Storage 视为文件系统吗?
我希望我的代码看起来像
with open(<something>) as f:
for line in f:
dosomething(line)
请注意,在 ml-engine one 中不会创建和配置 VM 实例。所以我不能用 Filestore 挂载我自己的共享文件系统。
【问题讨论】:
标签: python google-app-engine google-cloud-platform google-cloud-storage google-cloud-ml