当前位置:网站首页>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)
边栏推荐
- BFS realizes breadth first traversal of adjacency matrix (with examples)
- 深入探索编译插桩技术(四、ASM 探秘)
- Chapter II proxy and cookies of urllib Library
- Mujoco Jacobi - inverse motion - sensor
- 【JVM调优实战100例】04——方法区调优实战(上)
- paddlehub应用出现paddle包报错的问题
- 【批處理DOS-CMD命令-匯總和小結】-字符串搜索、查找、篩選命令(find、findstr),Find和findstr的區別和辨析
- Dell筆記本周期性閃屏故障
- 《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
- . Bytecode structure of class file
猜你喜欢
筑梦数字时代,城链科技战略峰会西安站顺利落幕
【批处理DOS-CMD命令-汇总和小结】-字符串搜索、查找、筛选命令(find、findstr),Find和findstr的区别和辨析
迈动互联中标北京人寿保险,助推客户提升品牌价值
Dr selection of OSPF configuration for Huawei devices
Activereportsjs 3.1 Chinese version | | | activereportsjs 3.1 English version
Data sharing of the 835 postgraduate entrance examination of software engineering in Hainan University in 23
. Bytecode structure of class file
Attention SLAM:一种从人类注意中学习的视觉单目SLAM
C9 colleges and universities, doctoral students make a statement of nature!
[C language] dynamic address book
随机推荐
Part V: STM32 system timer and general timer programming
集合(泛型 & List & Set & 自定义排序)
Mujoco Jacobi - inverse motion - sensor
Advanced learning of MySQL -- basics -- multi table query -- joint query
Learning notes 5: ram and ROM
[C language] dynamic address book
Alexnet experiment encounters: loss Nan, train ACC 0.100, test ACC 0.100
The printf function is realized through the serial port, and the serial port data reception is realized by interrupt
Set (generic & list & Set & custom sort)
OSPF configuration command of Huawei equipment
Stm32f407 ------- SPI communication
深度学习之数据处理
【批处理DOS-CMD命令-汇总和小结】-字符串搜索、查找、筛选命令(find、findstr),Find和findstr的区别和辨析
Advanced learning of MySQL -- basics -- multi table query -- external connection
Memory optimization of Amazon memorydb for redis and Amazon elasticache for redis
Advanced learning of MySQL -- basics -- transactions
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
alexnet实验偶遇:loss nan, train acc 0.100, test acc 0.100情况
What is time
A brief history of deep learning (I)