Skip to content

Commit

Permalink
Merge pull request #19 from Vooban/master
Browse files Browse the repository at this point in the history
Sonnet's base AbstractModule now requires named arguments (Sonnet v1.6 and Python 3)
  • Loading branch information
sergomezcol authored Jul 25, 2017
2 parents a465d37 + 61cfc4c commit f3c1a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def __init__(self, output_size, layers, preprocess_name="identity",
"zeros" will be converted to tf.zeros_initializer).
name: Module name.
"""
super(StandardDeepLSTM, self).__init__(name)
super(StandardDeepLSTM, self).__init__(name=name)

self._output_size = output_size
self._scale = scale
Expand Down Expand Up @@ -318,7 +318,7 @@ def __init__(self, learning_rate=0.001, name="sgd"):
learning_rate: constant learning rate to use.
name: Module name.
"""
super(Sgd, self).__init__(name)
super(Sgd, self).__init__(name=name)
self._learning_rate = learning_rate

def _build(self, inputs, _):
Expand Down

0 comments on commit f3c1a8d

Please sign in to comment.