当前位置:网站首页>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)
边栏推荐
- Learn to use code to generate beautiful interface documents!!!
- How to get started and improve test development?
- Cause of handler memory leak
- tensorflow 1.14指定gpu运行设置
- JS+SVG爱心扩散动画js特效
- 集合(泛型 & List & Set & 自定义排序)
- A brief history of deep learning (I)
- How do novices get started and learn PostgreSQL?
- Address information parsing in one line of code
- Part IV: STM32 interrupt control programming
猜你喜欢
![[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr](/img/4a/0dcc28f76ce99982f930c21d0d76c3.png)
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
![[software reverse automation] complete collection of reverse tools](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[software reverse automation] complete collection of reverse tools

第六篇,STM32脉冲宽度调制(PWM)编程

【批處理DOS-CMD命令-匯總和小結】-字符串搜索、查找、篩選命令(find、findstr),Find和findstr的區別和辨析

Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly

Trace tool for MySQL further implementation plan

Telerik UI 2022 R2 SP1 Retail-Not Crack

Part IV: STM32 interrupt control programming

Service asynchronous communication

学习光线跟踪一样的自3D表征Ego3RT
随机推荐
深度学习简史(一)
Attention SLAM:一種從人類注意中學習的視覺單目SLAM
Tencent cloud webshell experience
A brief history of deep learning (II)
[batch dos-cmd command - summary and summary] - jump, cycle, condition commands (goto, errorlevel, if, for [read, segment, extract string]), CMD command error summary, CMD error
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
第七篇,STM32串口通信编程
Advanced learning of MySQL -- basics -- multi table query -- inner join
Equals() and hashcode()
[Niuke classic question 01] bit operation
stm32F407-------SPI通信
Part IV: STM32 interrupt control programming
New feature of Oracle 19C: automatic DML redirection of ADG, enhanced read-write separation -- ADG_ REDIRECT_ DML
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
Link sharing of STM32 development materials
Five different code similarity detection and the development trend of code similarity detection
Telerik UI 2022 R2 SP1 Retail-Not Crack
Fastdfs data migration operation record
筑梦数字时代,城链科技战略峰会西安站顺利落幕
Memory optimization of Amazon memorydb for redis and Amazon elasticache for redis