Skip to content

Commit

Permalink
Sonnet's base AbstractModule now requires named arguments. See: googl…
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chevalier committed Jul 17, 2017
1 parent a465d37 commit 61cfc4c
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 61cfc4c

Please sign in to comment.