当前位置:网站首页>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)
边栏推荐
- Link sharing of STM32 development materials
- Cause of handler memory leak
- Stm32f407 ------- DAC digital to analog conversion
- 学习光线跟踪一样的自3D表征Ego3RT
- Let's talk about 15 data source websites I often use
- Attention SLAM:一种从人类注意中学习的视觉单目SLAM
- 重上吹麻滩——段芝堂创始人翟立冬游记
- 【JVM调优实战100例】05——方法区调优实战(下)
- 集合(泛型 & List & Set & 自定义排序)
- 新手如何入门学习PostgreSQL?
猜你喜欢

Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
![[C language] dynamic address book](/img/e7/ca1030a1099fe1f59f5d8dd722fdb7.jpg)
[C language] dynamic address book

Zynq transplant ucosiii

JS+SVG爱心扩散动画js特效

Dr selection of OSPF configuration for Huawei devices

Dell Notebook Periodic Flash Screen Fault

Stm32f407 ------- DAC digital to analog conversion

Slam d'attention: un slam visuel monoculaire appris de l'attention humaine

筑梦数字时代,城链科技战略峰会西安站顺利落幕

Chapter II proxy and cookies of urllib Library
随机推荐
Cause of handler memory leak
学习使用代码生成美观的接口文档!!!
fastDFS数据迁移操作记录
Advanced learning of MySQL -- basics -- transactions
Address information parsing in one line of code
build. How to configure the dependent version number in the gradle file
省市区三级坐标边界数据csv转JSON
第七篇,STM32串口通信编程
Article management system based on SSM framework
Fastdfs data migration operation record
Part V: STM32 system timer and general timer programming
以机房B级建设标准满足等保2.0三级要求 | 混合云基础设施
深度学习简史(一)
[Batch dos - cmd Command - Summary and Summary] - String search, find, Filter Commands (FIND, findstr), differentiation and Analysis of Find and findstr
Data processing of deep learning
Equals() and hashcode()
[C language] dynamic address book
Web project com mysql. cj. jdbc. Driver and com mysql. jdbc. Driver differences
[software reverse - solve flag] memory acquisition, inverse transformation operation, linear transformation, constraint solving
Part 7: STM32 serial communication programming