Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Apr 30, 2020
1 parent 8f83134 commit 17c5984
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/tutorial/extend/callback.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,11 @@ You can overwrite any of the following methods in the new callback:

### Examples

Check source code of the [existing tensorpack callbacks](../../modules/callbacks.md).
Or grep 'Callback' in tensorpack examples for those implemented as extensions.
The builtin callbacks listed in [API docs](../../modules/callbacks.md) and callbacks in tensorpack examples are
great examples to learn how to write a callback.

Custom callbacks in tensorpack examples can be found by `ack Callback` in the example directory.
Some interesting ones are:
* Run inference during training with a predictor:
[CycleGAN](../../../examples/GAN/CycleGAN.py), [RCNN](../../../examples/FasterRCNN/eval.py)
* Run some ops to modify weights during training: [WGAN](../../../examples/GAN/WGAN.py), [MOCO](https://github.com/ppwwyyxx/moco.tensorflow/blob/master/main_moco.py)

0 comments on commit 17c5984

Please sign in to comment.