Skip to content

Commit 48bc346

Browse files
committed
updated docs
1 parent 0895a41 commit 48bc346

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/Trainer/hooks.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def on_epoch_start(self):
1818
```
1919

2020
---
21-
#### on_batch_end
21+
#### on_epoch_end
2222
Called in the training loop at the very end of the epoch.
2323
```python
2424
def on_epoch_end(self):
@@ -33,6 +33,14 @@ def on_batch_start(self):
3333
# do something when the batch starts
3434
```
3535

36+
---
37+
#### on_batch_end
38+
Called in the training loop after the batch.
39+
```python
40+
def on_batch_end(self):
41+
# do something when the batch ends
42+
```
43+
3644
---
3745
#### on_pre_performance_check
3846
Called at the very beginning of the validation loop.

0 commit comments

Comments
 (0)