在终端中输入gedit ~/.theanorc
这时文档应是空白的,在文档中写入:
[global]
device=gpu
floatX=float32
[dnn.conv]
algo_bwd_filter = deterministic
algo_bwd_data = deterministic
[cuda]
root=/usr/local/cuda-8.0
[lib]
cnmem=0.3
[nvcc]
fastmath = True
optimizer_including=cudnn
参考:http://blog.youkuaiyun.com/sinat_31824577/article/details/53140406
本文介绍如何通过编辑~/.theanorc文件来配置Theano使用GPU加速。具体步骤包括设置device为gpu,指定floatX类型为float32,并对CUDA环境进行详细配置,确保Theano能高效地利用GPU资源。
1万+

被折叠的 条评论
为什么被折叠?



