博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Pytorch中cudnn版本查询
阅读量:7045 次
发布时间:2019-06-28

本文共 757 字,大约阅读时间需要 2 分钟。

问题:

Disable or able cudnn,查询版本。

Disable cudnn for batch_norm: (See: )

# PYTORCH=/path/to/pytorch# for pytorch v0.4.0sed -i "1194s/torch\.backends\.cudnn\.enabled/False/g" ${PYTORCH}/torch/nn/functional.py# for pytorch v0.4.1sed -i "1254s/torch\.backends\.cudnn\.enabled/False/g" ${PYTORCH}/torch/nn/functional.py# Note that instructions like # PYTORCH=/path/to/pytorch indicate that you should pick # a path where you'd like to have pytorch installed and then set an environment# variable (PYTORCH in this case) accordingly.

For other pytorch version

import torchprint(torch.backends.cudnn.version()) 对我来说 7501 所以,
sed -i "7501s/torch\.backends\.cudnn\.enabled/False/g" ${PYTORCH}/torch/nn/functional.py

 

转载于:https://www.cnblogs.com/wangyarui/p/11058346.html

你可能感兴趣的文章
写给新人的面向对象的基本思维
查看>>
关于分部视图(Partial View)
查看>>
DNS污染——domain name的解析被劫持了返回无效的ip
查看>>
一步一步写一个简单通用的makefile(二)
查看>>
sunspot使用
查看>>
Zombie.js Insanely fast, headless full-stack testing using Node.js
查看>>
POJ2406-Power Strings(kmp循环节)
查看>>
BCM路由全智能固件升级软件tftp,一键刷路由及常用固件下载
查看>>
个人认识:直接断电和发送复位信号给主板有啥区别?
查看>>
测试体会:WAYOS新架构(即二代QOS)的新功能解释
查看>>
UVA 10169 Urn-ball Probabilities !
查看>>
每日一例,练就编程高手
查看>>
no argument specified with option "/LIBPATH:"错误的解决【转载】
查看>>
初涉c#设计模式-Factory Pattern
查看>>
JRuby——Java和Ruby的强强联合
查看>>
ipcs和ipcrm用法简介
查看>>
[Go 笔记]关于 Panic和 Recover
查看>>
关于HP Diagnostics
查看>>
Oracle中的二进制、八进制、十进制、十六进制相互转换函数
查看>>
关于empty函数的输出
查看>>