This commit is contained in:
William Falcon
2019-09-26 10:42:38 -04:00
2 changed files with 13 additions and 1 deletions
@@ -145,7 +145,7 @@ def training_step(self, batch, batch_nb):
output = {
'loss': loss, # required
'progress': {'training_loss': loss, 'batch_nb': batch_nb} # optional
'progress': {'training_loss': loss} # optional (MUST ALL BE TENSORS)
}
# return a dict
+12
View File
@@ -74,6 +74,18 @@ First, install apex (if install fails, look [here](https://github.com/NVIDIA/ape
```bash
$ git clone https://github.com/NVIDIA/apex
$ cd apex
# ------------------------
# OPTIONAL: on your cluster you might need to load cuda 10 or 9
# depending on how you installed PyTorch
# see available modules
module avail
# load correct cuda before install
module load cuda-10.0
# ------------------------
$ pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
```