RStudio Tensorflow Eager Mode Eat All GPU Memory

import tensorflow as tf

tf.enable_eager_execution()

tf.cos(1)

I have two GPU cards, which were taken by RStudio when I am using eager mode. How to limit the default resources?

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 12657 C /usr/lib/rstudio-server/bin/rsession 21791MiB |
| 1 12657 C /usr/lib/rstudio-server/bin/rsession 21791MiB |

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.