当前位置:网站首页>Some errors of tensorflow calling multiple GPUs
Some errors of tensorflow calling multiple GPUs
2022-07-25 11:24:00 【fatfatmomo】
Two servers GPU, run tensorflow edition bert I want two pieces GPU They all use . After reading other tutorials, I said there are two methods , stay windows server 2016 Tested on , With GPU-Z Tool execution GPU Observe , because windows server The task manager of is a castrated version, can't see GPU performance .
Method 1 :
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "1"# Specify the graphics card 1 function
### If you want to use multiple graphics cards, you can do it as follows , But not tested , My code is in estimator Written , It should be late GPU Deal with it by yourself GPU Resources can be multiple GPU parallel , I will run the computer with the first graphics card you set up in the following way ###
os.environ['CUDA_VISIBLE_DEVICES'] = '1,0',
Method 2 :
config = tf.ConfigProto(device_count={'GPU': 0})
###GPU:0 Said the use of CPU Don't use GPU,GPU:1 Said the use of GPU###
边栏推荐
- Software Testing Technology: cross platform mobile UI automated testing (Part 1)
- Detailed explanation of the implementation method of DNS separation and resolution
- tensorflow 调用多块GPU的一些错误
- Hcip experiment (01)
- 学习路之PHP--Phpstudy 提示 Mysqld.Exe: Error While Setting Value ‘NO_ENGINE_SUBSTITUTION 错误的解决办法
- [cloud enjoys freshness] community weekly · Vol 72 - the first opening ceremony of the 2022 Huawei developer competition in China was launched; Huawei cloud koomessage is in hot public beta
- 上周热点回顾(7.18-7.24)
- JS 将伪数组转换成数组
- 新能源销冠宏光MINIEV,有着怎样的产品力?
- feign客户端请求之LoadBalancerLifecycle生命周期
猜你喜欢

Code representation learning: introduction to codebert and other related models

Learn NLP with Transformer (Chapter 6)

How can you use unity without several plug-ins? Unity various plug-ins and tutorial recommendations

爬虫基础一

【flask高级】结合源码详解flask的运行机制(出入栈)
Learn NLP with Transformer (Chapter 3)

复习背诵整理版

【flask高级】从源码深入理解flask的应用上下文和请求上下文

My colleague looked at my code and exclaimed: how can I use a singleton in unity

mysql高级语句(一)(总有一个人的出现,让你的生活不再继续糟糕)
随机推荐
UE4.26源码版学习广域网独立服务器时遇到的客户端运行黑屏问题
JS convert pseudo array to array
Multiply Floyd "suggestions collection"
Learn Luzhi PHP -- tp5.0 uses Chinese as an alias and reports "unsupported data expression"
Learn PHP -- phpstudy tips mysqld Exe: Error While Setting Value ‘NO_ ENGINE_ Solution of substitution error
常见的几种PCB表面处理技术!
NowCoderTOP7-11——持续更新ing
[flask advanced] deeply understand the application context and request context of flask from the source code
Want to record your supernatural moments when playing games? Let's take a look at how to use unity screenshots
What kind of product power does Hongguang miniev, the top seller of new energy, have?
HCIA experiment (07) comprehensive experiment
I, AI doctoral student, online crowdfunding research topic
苹果美国宣布符合销售免税假期的各州产品清单细节
HCIP(12)
Let sports happen naturally, and fire creates a new lifestyle
HCIP(11)
C# Newtonsoft. Jason advanced usage
Only know that the preform is used to generate objects? See how I use unity to generate UI prefabs
Loadbalancerlife lifecycle requested by feign client
ESP8266 使用 DRV8833驱动板驱动N20电机