MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / DEFAULT_CALLBACKS

Function DEFAULT_CALLBACKS

tensorpack/train/config.py:20–35  ·  view source on GitHub ↗

Return the default callbacks, which will be used in :class:`TrainConfig` and :meth:`Trainer.train_with_defaults`. They are: 1. MovingAverageSummary() 2. ProgressBar() 3. MergeAllSummaries() 4. RunUpdateOps()

()

Source from the content-addressed store, hash-verified

18
19
20def DEFAULT_CALLBACKS():
21 """
22 Return the default callbacks,
23 which will be used in :class:`TrainConfig` and :meth:`Trainer.train_with_defaults`.
24 They are:
25
26 1. MovingAverageSummary()
27 2. ProgressBar()
28 3. MergeAllSummaries()
29 4. RunUpdateOps()
30 """
31 return [
32 MovingAverageSummary(),
33 ProgressBar(),
34 MergeAllSummaries(),
35 RunUpdateOps()]
36
37
38def DEFAULT_MONITORS():

Callers 1

train_with_defaultsMethod · 0.85

Calls 4

ProgressBarClass · 0.85
MergeAllSummariesFunction · 0.85
RunUpdateOpsClass · 0.85

Tested by

no test coverage detected