Skip to content

Commit 3a7e068

Browse files
wjaskowskiapaszke
authored andcommitted
Remove spurious memo argument in Module.parameters() (pytorch#1527)
1 parent 862105e commit 3a7e068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/nn/modules/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def load_state_dict(self, state_dict):
338338
if len(missing) > 0:
339339
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
340340

341-
def parameters(self, memo=None):
341+
def parameters(self):
342342
"""Returns an iterator over module parameters.
343343
344344
This is typically passed to an optimizer.

0 commit comments

Comments
 (0)