Dog*_*ore 9 tensorflow jupyter-notebook google-colaboratory
有没有办法用Google Colab写出文件?例如,如果我使用
import requests
r = requests.get(url)
Run Code Online (Sandbox Code Playgroud)
这些文件将存储在哪里?可以找到它们吗?同样,我可以通过tensorflow save函数获取我输出的文件吗
saver=tf.Saver(....)
...
path = saver.save(sess, "./my_model.ckpt")
Run Code Online (Sandbox Code Playgroud)
谢谢!
Kor*_*ich 11
In your first example, the data is still in r.content. So you also need to save them first with open('data.dat', 'wb').write(r.content)
Then you can download them with files.download
from google.colab import files
files.download('data.dat')
Run Code Online (Sandbox Code Playgroud)
Downloading your model is the same:
files.download('my_model.ckpt')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15159 次 |
| 最近记录: |