Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
loudinthecloud committed Oct 10, 2017
1 parent 91fb9d6 commit e5477b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tasks/copytask.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Copy Task NTM model."""
import random

from attr import attrs, attrib, Factory
import torch
from torch import nn
from torch.autograd import Variable
from torch import optim
import random
import numpy as np

from ntm.aio import EncapsulatedNTM
Expand Down
3 changes: 2 additions & 1 deletion tasks/repeatcopytask.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Copy Task NTM model."""
import random

from attr import attrs, attrib, Factory
import torch
from torch import nn
from torch.autograd import Variable
from torch import optim
import random
import numpy as np

from ntm.aio import EncapsulatedNTM
Expand Down
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def init_arguments():
parser.add_argument('-p', '--param', action='append', default=[],
help='Override model params. Example: "-pbatch_size=4 -pnum_heads=2"')
parser.add_argument('--checkpoint-interval', type=int, default=CHECKPOINT_INTERVAL,
help="Checkpoint interval (default: {}). Use 0 to disable checkpointing".format(CHECKPOINT_INTERVAL))
help="Checkpoint interval (default: {}). "
"Use 0 to disable checkpointing".format(CHECKPOINT_INTERVAL))
parser.add_argument('--checkpoint-path', action='store', default='./',
help="Path for saving checkpoint data (default: './')")
parser.add_argument('--report-interval', type=int, default=REPORT_INTERVAL,
Expand Down

0 comments on commit e5477b1

Please sign in to comment.