Skip to content

Commit 030df9b

Browse files
committed
accepted external fix for NVIDIA_INTERNAL
2 parents 66e695f + 8b9e063 commit 030df9b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ runx helps to automate common tasks while doing research:
1010

1111
## Quick-start Installation
1212

13+
Install with pip:
14+
```
15+
> pip install runx
16+
```
17+
1318
Install with source:
1419
```
1520
> git clone https://github.com/NVIDIA/runx
1621
> cd runx
1722
> python setup.py install --user
1823
```
1924

20-
Install using pip
21-
TBD
22-
2325
## Introduction: a simple example
2426
Suppose you have an existing project that you call as follows:
2527

@@ -252,7 +254,7 @@ For example:
252254
253255
You can do this with hparams defined as follows:
254256
```yaml
255-
hparams: [
257+
HPARAMS: [
256258
{
257259
logdir: LOGDIR,
258260
adam: true,

runx/runx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def construct_cmd(cmd, hparams, resources, job_name, logdir):
104104
######################################################################
105105
# You may wish to customize this function for your own needs
106106
######################################################################
107-
if 'NVIDIA_INTERNAL' in os.environ and os.environ['NVIDIA_INTERNAL']:
107+
if os.environ.get('NVIDIA_INTERNAL'):
108108
cmd += '--name {} '.format(job_name)
109109
if 'submit_job' in cmd:
110110
cmd += '--cd_to_logdir '

0 commit comments

Comments
 (0)