ahangchen / GDLnotes

Google Deep Learning Notes(TensorFlow教程)
Other
1.49k stars 479 forks source link

Python相关问题 #1

Open ahangchen opened 8 years ago

ahangchen commented 8 years ago

可以在这里讨论Python相关问题

sunxiaobiu commented 7 years ago

@ahangchen 请教: native python IO 可以支持Google Storage, gs://.吗?好像不行~ 我想把https://github.com/sherjilozair/char-rnn-tensorflow/blob/master/model.py 有没有相应的Python包可以使用的呢?

ahangchen commented 7 years ago

@sunxiaobiu 主要是Google Storage被墙了吧,应该不是Python的锅,你的model的问题我没看懂,你是想表达是否有可以实现这种功能的model吗?

sunxiaobiu commented 7 years ago

@ahangchen 现在代码里是直接IO读取的: input_file = os.path.join(data_dir, "input.txt")

我想把代码改成其他的IO方式,使得可以支持Google Storage, gs://的读写 比如: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/lib/io/file_io.py 不知道可不可行呢?有类似的支持Google Storage 的pythonIO包吗?

ahangchen commented 7 years ago

@sunxiaobiu 可以看看 gsutil的官方文档

chenmingyong2 commented 5 years ago

楼主的RNN介绍不错,我发现cPickle 需要改成直接用pickle 。