当前位置:网站首页>Tensorflow 1.14 specify GPU running settings
Tensorflow 1.14 specify GPU running settings
2022-07-07 01:00:00 【The mountain of ignorance, the valley of despair, the slope of 】
Be careful :allow_soft_placement=True indicate : Computing devices are optional , If you don't have this parameter , Will report a mistake .
Because not all operations can be placed in GPU On , If forced will not be able to put in GPU The operation on is assigned to GPU On , Will be an error .
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0" # Here is gpu The serial number of , Designated to use gpu object
gpu_options = tf.GPUOptions()
gpu_options.allow_growth = True
config_photo = tf.ConfigProto(allow_soft_placement=True, gpu_options=gpu_options, log_device_placement=True)
self.sess = tf.Session(config=config_photo)
边栏推荐
- Equals() and hashcode()
- Dell笔记本周期性闪屏故障
- Part V: STM32 system timer and general timer programming
- Dell筆記本周期性閃屏故障
- Link sharing of STM32 development materials
- Dr selection of OSPF configuration for Huawei devices
- Linear algebra of deep learning
- Provincial and urban level three coordinate boundary data CSV to JSON
- 学习使用代码生成美观的接口文档!!!
- 5种不同的代码相似性检测,以及代码相似性检测的发展趋势
猜你喜欢
![[100 cases of JVM tuning practice] 04 - Method area tuning practice (Part 1)](/img/7a/bd03943c39d3f731afb51fe2e0f898.png)
[100 cases of JVM tuning practice] 04 - Method area tuning practice (Part 1)

Linear algebra of deep learning

第五篇,STM32系统定时器和通用定时器编程

stm32F407-------DAC数模转换

Learn self 3D representation like ray tracing ego3rt

【JVM调优实战100例】04——方法区调优实战(上)

Attention SLAM:一種從人類注意中學習的視覺單目SLAM

学习光线跟踪一样的自3D表征Ego3RT
Summary of being a microservice R & D Engineer in the past year

深度学习之数据处理
随机推荐
View remote test data and records anytime, anywhere -- ipehub2 and ipemotion app
在jupyter中实现实时协同是一种什么体验
Memory optimization of Amazon memorydb for redis and Amazon elasticache for redis
【JVM调优实战100例】05——方法区调优实战(下)
paddlehub应用出现paddle包报错的问题
BFS realizes breadth first traversal of adjacency matrix (with examples)
Fastdfs data migration operation record
迈动互联中标北京人寿保险,助推客户提升品牌价值
深度学习简史(一)
Chapter II proxy and cookies of urllib Library
Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang
Make a simple graphical interface with Tkinter
OSPF configuration command of Huawei equipment
Js+svg love diffusion animation JS special effects
集合(泛型 & List & Set & 自定义排序)
[user defined type] structure, union, enumeration
用tkinter做一个简单图形界面
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
Build your own website (17)
Attention SLAM:一種從人類注意中學習的視覺單目SLAM