Skip to content

Commit 7f30117

Browse files
committed
Updated README
1 parent 7071c65 commit 7f30117

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ Utils
5252
grab_gpus
5353
~~~~~~~~~
5454

55-
You can call the `grab_gpus(num_gpus, gpu_select)` function to check the
55+
You can call the :code:`grab_gpus(num_gpus, gpu_select)` function to check the
5656
available gpus and set the `CUDA_VISIBLE_DEVICES` environment variable as need
5757
be. It determines if a GPU is available by checking if the memory-usage is 0%.
5858

5959
I have found this useful as I have a shared gpu server and like to use
60-
tensorflow which is very greedy and calls to `tf.Session()` grabs all available gpus.
60+
tensorflow which is very greedy and calls to :code:`tf.Session()` grabs all available gpus.
6161

6262
E.g.
6363

@@ -80,7 +80,7 @@ option is not necessary, and it only serves to restrict the search space for
8080
the grab_gpus.
8181

8282
You can adjust the memory threshold for determining if a GPU is free/used with
83-
the `gpu_fraction` parameter (default is 1):
83+
the :code:`gpu_fraction` parameter (default is 1):
8484

8585
.. code:: python
8686

0 commit comments

Comments
 (0)