TensorFlow-Examples icon indicating copy to clipboard operation
TensorFlow-Examples copied to clipboard

gpu memory usage

Open Cumberbatch08 opened this issue 6 years ago • 3 comments

when i use nvidia-smi to watch gpu usage, image I have three gpus, but it seems like only one gpu is used?

Cumberbatch08 avatar Jul 23 '19 07:07 Cumberbatch08

the default gpu value on these examples is set at one, unless you explicitly declare otherwise. Im not super familiar with these packages, but thats the issue I had when I ran this.

Hope that helps, cheers

QuantumChamploo avatar Jul 23 '19 07:07 QuantumChamploo

the code defines the number of gpu, and in line 134, the for loop uses the gpus.

Cumberbatch08 avatar Jul 23 '19 08:07 Cumberbatch08

when I run the code, my code did'nt run the train_op, so this code works, and load the model to predict also works. many thaks!

Cumberbatch08 avatar Jul 24 '19 03:07 Cumberbatch08