当前位置:网站首页>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)
边栏推荐
- pyflink的安装和测试
- Trace tool for MySQL further implementation plan
- [batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
- Advanced learning of MySQL -- basics -- multi table query -- external connection
- 通过串口实现printf函数,中断实现串口数据接收
- Let's talk about 15 data source websites I often use
- 再聊聊我常用的15个数据源网站
- 【JokerのZYNQ7020】AXI_ EMC。
- 【批处理DOS-CMD命令-汇总和小结】-跳转、循环、条件命令(goto、errorlevel、if、for[读取、切分、提取字符串]、)cmd命令错误汇总,cmd错误
- Advanced learning of MySQL -- basics -- transactions
猜你喜欢
[user defined type] structure, union, enumeration
Stm32f407 ------- DAC digital to analog conversion
View remote test data and records anytime, anywhere -- ipehub2 and ipemotion app
ActiveReportsJS 3.1中文版|||ActiveReportsJS 3.1英文版
Distributed cache
Dr selection of OSPF configuration for Huawei devices
[yolov5 6.0 | 6.1 deploy tensorrt to torch serve] environment construction | model transformation | engine model deployment (detailed packet file writing method)
Part VI, STM32 pulse width modulation (PWM) programming
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
第七篇,STM32串口通信编程
随机推荐
Mujoco Jacobi - inverse motion - sensor
Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
Explain in detail the matrix normalization function normalize() of OpenCV [norm or value range of the scoped matrix (normalization)], and attach norm_ Example code in the case of minmax
再聊聊我常用的15个数据源网站
Trace tool for MySQL further implementation plan
Advanced learning of MySQL -- basics -- multi table query -- inner join
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
Linear algebra of deep learning
新手如何入门学习PostgreSQL?
mongodb客户端操作(MongoRepository)
[software reverse - solve flag] memory acquisition, inverse transformation operation, linear transformation, constraint solving
接口(接口相关含义,区别抽象类,接口回调)
Chapter 5 DML data operation
Hero League | King | cross the line of fire BGM AI score competition sharing
How do novices get started and learn PostgreSQL?
equals()与hashCode()
Telerik UI 2022 R2 SP1 Retail-Not Crack
【批處理DOS-CMD命令-匯總和小結】-字符串搜索、查找、篩選命令(find、findstr),Find和findstr的區別和辨析
Chenglian premium products has completed the first step to enter the international capital market by taking shares in halber international
New feature of Oracle 19C: automatic DML redirection of ADG, enhanced read-write separation -- ADG_ REDIRECT_ DML