【发布时间】:2020-01-21 07:37:40
【问题描述】:
在tensorflow 1.x 中,有一个类似use_unified_memory 和per_process_gpu_memory_fraction 的选项可能会触发使用的CUDA UVM。但是在tensorflow 2.0 中如何做到这一点呢?
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/protobuf/config.proto
// If true, uses CUDA unified memory for memory allocations. If
// per_process_gpu_memory_fraction option is greater than 1.0, then unified
// memory is used regardless of the value for this field. See comments for
// per_process_gpu_memory_fraction field for more details and requirements
// of the unified memory. This option is useful to oversubscribe memory if
// multiple processes are sharing a single GPU while individually using less
// than 1.0 per process memory fraction.
bool use_unified_memory = 2;
【问题讨论】:
标签: python tensorflow tensorflow2.0