Skip to content

Commit

Permalink
Remove unneccesary prints
Browse files Browse the repository at this point in the history
  • Loading branch information
mitmul committed Jul 25, 2017
1 parent a05a670 commit 125977f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions chainercmd/template/config.yml
Expand Up @@ -38,6 +38,7 @@ optimizer:
points: [10, 15]
unit: epoch

# You can ommit this part
updater_creator:
file: updater_creator.py
name: MyUpdaterCreator
Expand Down
8 changes: 4 additions & 4 deletions chainercmd/template/updater_creator.py
@@ -1,7 +1,7 @@
from chainer.training import updater


def updater_creator(iterator, optimizer, devices, *args, **kwargs):
print(args)
print(kwargs)
return updater.StandardUpdater(iterator, optimizer, device=devices['main'])
def updater_creator(iterator, optimizer, devices, **kwargs):
updater = updater.StandardUpdater(
iterator, optimizer, device=devices['main'])
return updater

0 comments on commit 125977f

Please sign in to comment.