当前位置:网站首页>Tensorflow dynamically allocates video memory
Tensorflow dynamically allocates video memory
2022-06-26 09:51:00 【A cloud in the sky】
The first way we should all know , Mainly for Session With
config = tf.ConfigProto()
config.gpu_options.allow_growth=True
sess = tf.Session(config=config)But I use Tensorflow Of Estimator, The following methods can be used
session_config = tf.ConfigProto(log_device_placement=True,allow_soft_placement=True)
session_config.gpu_options.per_process_gpu_memory_fraction = 0.8
session_config.gpu_options.allow_growth = True # The adaptive
run_config = tf.estimator.RunConfig(
session_config=session_config,
model_dir=FLAGS.output_dir,
save_checkpoints_steps=FLAGS.save_checkpoints_steps)
If it is TPU, Is the same , does tf.estimator Change it to tf.estimator.tpu
边栏推荐
- 2021-11-29 quintic polynomial of trajectory planning
- Halcon photometric stereoscopic
- 我的创作纪念日
- Regular expression learning
- Badge collection 6:api\_ Use of level
- Flutter's brain map notes are easy to find and search!
- 【AAAI 2021】Few-Shot One-Class Classification via Meta-Learning 【FSOCC via Meta-learning】
- WIN10系统实现Redis主从复制
- [Journal of Computer Aided Design & computer graphics] overview of research on pedestrian re recognition methods based on generated countermeasure network
- This new change of go 1.16 needs to be adapted: the changes of go get and go install
猜你喜欢

我的创作纪念日

Install new version cmake & swig & tinyspline

online trajectory generation

2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(2)详解

【轨迹规划】Ruckig库的测试

2021-11-29 quintic polynomial of trajectory planning

Badge series 7: use of codacy

【CVPR 2021】DatasetGAN: Efficient Labeled Data Factory with Minimal Human Effort

Specific implementation comparison between different programming languages

Single sign on logic
随机推荐
Badge series 4: use of circle Ci
2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(1)详细解析教程
2021-11-22 运动规划杂记
Logical English structure [key points]
Joint Noise-Tolerant Learning and Meta Camera Shift Adaptation for Unsupervised Person Re-ID
Flink入门——单词统计
力扣------从数组中移除最大值和最小值
install opencv-contrib-dev to use aruco code
online trajectory generation
This new change of go 1.16 needs to be adapted: the changes of go get and go install
自动化测试——pytest本身及第三方模块介绍及使用
Differences between VI and vim and common commands
Detailed explanation of the network security competition questions (2) of the 2021 national vocational college skills competition (secondary vocational group)
How does flutter transfer parameters to the next page when switching pages?
TensorFlow动态分配显存
Thinkphp5 using the composer installation plug-in prompts that the PHP version is too high
使用递归或while循环获取父/子层级结构的名称
Teach you to use shell script to check whether the server program is running
PHP extracts TXT text to store the domain name in JSON data
PHP does not allow images to be uploaded together with data (no longer uploading images before uploading data)