当前位置:网站首页>限制tensorflow使用Cpu核数
限制tensorflow使用Cpu核数
2022-08-04 21:52:00 【天天进步2015】
一开始,用tensorflow训练时,使用默认设置,运行时Cpu占用率过高,机器声音很响。
后来,改用下面的代码限制tensorflow使用Cpu核数。
session_conf = tf.ConfigProto(
intra_op_parallelism_threads=1,
inter_op_parallelism_threads=1)
sess = tf.Session(config=session_conf)
边栏推荐
- What does Xinchuang mean?Which industries are involved?Why develop Xinchuang?
- 论文解读(PPNP)《Predict then Propagate: Graph Neural Networks meet Personalized PageRank》
- idea 仓库地址连接不上问题
- The upgrade and transformation plan of the fortress machine for medium and large commercial banks!Must see!
- input事件中文触发多次问题研究php DEBUG
- 硬件开发定制全流程解析
- 如何在项目中正确使用WebSocket
- Oracle使用expdp和impdp导出导入数据
- VSCode - common shortcut keys (continuous recording
- Cocoa Application-test
猜你喜欢
国际项目管理师PMP证书,值得考嘛?
七夕特制:《牛郎会织女》
用Tesseract开发一个你自己的文字识别应用
Is the International Project Manager PMP certificate worth taking?
数电快速入门(四)(组合逻辑电路的分析以及设计的介绍)
Lecture 2 Software Life Cycle
Driving point cloud format changes bring efficiency improvement
Qiangwang Cup 2022 - WEB
PowerCLi import license to vCenter 7
Unknown point cloud structure file conversion requirements
随机推荐
PyTorch Geometric (PyG) 安装教程
Open source summer | Cloud server ECS installs Mysql, JDK, RocketMQ
Milvus configuration related
PowerCLi batch configuration of NTP
VSCode - common shortcut keys (continuous recording
Win11如何开启Telnet客户端?
数电快速入门(三)(卡诺图化简法的介绍)
【线性代数02】AX=b的2种解释和矩阵乘法的5种视角
OC-类簇
【社媒营销】WhatsApp Business API:您需要知道的一切
数电快速入门(五)(编码器的介绍以及通用编码器74LS148和74LS147的介绍)
Ramnit感染型病毒分析与处置
The upgrade and transformation plan of the fortress machine for medium and large commercial banks!Must see!
Codeforces Round #811 (Div. 3)
Moke, dynamic image resource package display
PowerBI真经连续剧
Why is MySQL query slow?
In action: 10 ways to implement delayed tasks, with code!
LayaBox---TypeScript---structure
2022强网杯web(部分)