Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from chainer.training import updater | ||
|
||
|
||
def updater_creator(iterator, optimizer, devices, **kwargs): | ||
"""A sample updater creator. | ||
You need to return an Updater object in a updater creator method. | ||
Once a updter creator method is specified in the config YAML, the method | ||
will take iterator object, optimizer object, device dictionary, and "args" | ||
dictionary defined in the config YAML. You can make a custom Updater with | ||
those objects and return it. | ||
""" | ||
return updater.StandardUpdater( | ||
iterator, optimizer, device=devices['main']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters