Skip to content

Commit 5aef6e4

Browse files
fix argument description for on_train_batch callbacks in LambdaCallback (#21464)
1 parent 5c50089 commit 5aef6e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keras/src/callbacks/lambda_callback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class LambdaCallback(Callback):
1414
`epoch`, `logs`
1515
- `on_train_begin` and `on_train_end` expect one positional argument:
1616
`logs`
17-
- `on_train_batch_begin` and `on_train_batch_end` expect two positional
18-
arguments: `batch`, `logs`
17+
- `on_train_batch_begin` and `on_train_batch_end` expect a positional
18+
argument `batch` and a keyword argument `logs`
1919
- See `Callback` class definition for the full list of functions and their
2020
expected arguments.
2121

0 commit comments

Comments
 (0)