Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

train_type error #37

Open
ghost opened this issue Jul 11, 2018 · 4 comments
Open

train_type error #37

ghost opened this issue Jul 11, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 11, 2018

I am having an issue with the training, even running the examplepython3 learning/train_type.py learning/test/config.json give me the following error: File "learning/train_type.py", line 2690, in
main()
File "learning/train_type.py", line 2623, in main
create_variables=True)
File "learning/train_type.py", line 1775, in init
clip_norm=self.clip_norm)
File "learning/train_type.py", line 1467, in build_model
is_training=is_training)
File "learning/train_type.py", line 1020, in build_recurrent
direction="bidirectional")
TypeError: init() got multiple values for argument 'input_mode'
Any idea what might be causing this?
Thanks!

@abhimanu
Copy link

abhimanu commented Feb 6, 2019

Hi, I am getting the exact same error, after following all the steps, generating my evolved type output and creating the learning config file. I get the following error:

Traceback (most recent call last):
  File "learning/train_type.py", line 2690, in <module>
    main()
  File "learning/train_type.py", line 2623, in main
    create_variables=True)
  File "learning/train_type.py", line 1775, in __init__
    clip_norm=self.clip_norm)
  File "learning/train_type.py", line 1467, in build_model
    is_training=is_training)
  File "learning/train_type.py", line 1020, in build_recurrent
    direction="bidirectional")
TypeError: __init__() got multiple values for argument 'input_mode'

Any ideas? Thanks.

@JonathanRaiman
Copy link
Contributor

From what I understand this is caused by a tensor flow version mismatch. tf 1.4 vs 1.12 or newer. input_mode argument's position was changed in the newest version

@amandalmia14
Copy link

@JonathanRaiman
Neither 1.4 or 1.12 is working.
Can you please tell us which version of the tensorflow need to be installed.

Thanks

@mdocekal
Copy link

I solved the problem by installing the tensorflow-gpu==1.4.0

pip install tensorflow-gpu==1.4.0

For that version (according to https://www.tensorflow.org/install/source#tested_build_configurations) you need CUDA v8, which can be downloaded from:

https://developer.nvidia.com/cuda-toolkit-archive

The last thing that I needed to install was cuDNN v6.0. You can find it at

https://developer.nvidia.com/rdp/cudnn-archive

and install it according to these instructions:

https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html

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

No branches or pull requests

4 participants