rename variables nb -> num (#567)

* rename nb -> num

* flake8

* batch_nb, epoch_nb, gpu_nb, split_nb

* add _num deprecations
This commit is contained in:
Jirka Borovec authored and William Falcon committed 2019-12-04 06:57:10 -05:00
1 parent 63717e8fda
commit 3a58937d8b
30 files changed
+326 -290

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ class BERT(pl.LightningModule):
elif model_name == 'my_cool_version':
self.net = MyCoolVersion()
def training_step(self, batch, batch_nb):
def training_step(self, batch, batch_idx):
if self.task == 'standard_bert':
# do standard bert training with self.net...
# return loss
@@ -35,7 +35,7 @@ class CoolerNotBERT(pl.LightningModule):
def __init__(self):
self.net = ...
def training_step(self, batch, batch_nb):
def training_step(self, batch, batch_idx):
# do some other cool task
# return loss
```