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 |