Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

num_units is not a valid argument for BasicLSTMCell class tf 1.14 #357

Open
452896915 opened this issue Jul 20, 2019 · 3 comments
Open

num_units is not a valid argument for BasicLSTMCell class tf 1.14 #357

452896915 opened this issue Jul 20, 2019 · 3 comments

Comments

@452896915
Copy link

ValueError: num_units is not a valid argument for BasicLSTMCell class. Available arguments
are: set([])

@452896915 452896915 changed the title num_units is not a valid argument for BasicLSTMCell class num_units is not a valid argument for BasicLSTMCell class tf 1.14 Jul 20, 2019
@sczhu2024
Copy link

@chenhehong 我打不开他,请问能把解决方案分享一下吗

supersational added a commit to supersational/seq2seq that referenced this issue Jan 17, 2020
@superYong2020
Copy link

superYong2020 commented Nov 3, 2020

vim seq2seq/training/utils.py
change the following
cell_args = set(inspect.getargspec(cell_class.__init__).args[1:])
to
cell_args = set(inspect.signature(cell_class.__init__).parameters)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants