Skip to content

Commit

Permalink
fix issue google#357
Browse files Browse the repository at this point in the history
  • Loading branch information
supersational authored Jan 17, 2020
1 parent 5cce00f commit 1334d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seq2seq/training/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def cell_from_spec(cell_classname, cell_params):
cell_class = locate(cell_classname) or getattr(rnn_cell, cell_classname)

# Make sure additional arguments are valid
cell_args = set(inspect.getargspec(cell_class.__init__).args[1:])
cell_args = set(inspect.signature(cell_class.__init__).parameters)
for key in cell_params.keys():
if key not in cell_args:
raise ValueError(
Expand Down

0 comments on commit 1334d97

Please sign in to comment.