Theano: change `base_compiledir` to save compiled files in another directory

瘦欲@ 提交于 2019-12-04 12:04:26

As the documentation explains, you can set this, or any other Theano config flag, permanently by altering either the THEANO_FLAGS environment variable (e.g. in your ~/.bashrc file) or using a ~/.theanorc file.

For the former, add a line like this to your ~/.bashrc file:

export THEANO_FLAGS="base_compiledir=/some/path"

For the latter, create a ~/.theanorc file with contents that look like this:

[global]
base_compiledir=/some/path

In either case, you'll probably want to add a bunch of other flags such as device=, floatX=, etc.

If you alter your ~/.bashrc file the changes won't take effect in any active terminals unless you run source ~/.bashrc in each one or simply close the terminals and start new ones.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!