Skip to content

Commit

Permalink
Add command line option for rnn_type and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ixaxaar committed Oct 27, 2017
1 parent e2a007e commit 89298d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ output, (controller_hidden, memory, read_vectors) = \

The copy task, as descibed in the original paper, is included in the repo.

From the project root:
```
python ./copy_task.py -cuda 0
python ./tasks/copy_task.py -cuda 0
```

## General noteworthy stuff
Expand Down
1 change: 1 addition & 0 deletions tasks/copy_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

parser = argparse.ArgumentParser(description='PyTorch Differentiable Neural Computer')
parser.add_argument('-input_size', type=int, default= 6, help='dimension of input feature')
parser.add_argument('-rnn_type', type=str, default='lstm', help='type of recurrent cells to use for the controller')
parser.add_argument('-nhid', type=int, default=64, help='humber of hidden units of the inner nn')

parser.add_argument('-nlayer', type=int, default=2, help='number of layers')
Expand Down

0 comments on commit 89298d3

Please sign in to comment.