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

Not able to run it #1

Open
cja000 opened this issue Mar 22, 2018 · 4 comments
Open

Not able to run it #1

cja000 opened this issue Mar 22, 2018 · 4 comments

Comments

@cja000
Copy link

cja000 commented Mar 22, 2018

Hi,

I'm trying to run DeepChess but I got the following error:

AttributeError: Can't get attribute 'Mul' on <module 'tfdeploy' from '.../tensorflow/lib/python3.5/site-packages/tfdeploy.py'>

Any idea on how to fix it?

Thanks
CJ

@brianprichardson
Copy link

brianprichardson commented Mar 22, 2018

I got it to work some time ago. Make sure you have the older tensorflow version 0.10.0 per the readme
Don't recall if python-chess or other older versions might also be required.

@cja000
Copy link
Author

cja000 commented Mar 23, 2018

Thanks for your answer.
The problem was that tf.mul changed to tf.multiply
So changing, in the model.pkl line 93, from "Mul" to "Multiply" it worked.

Now I have another error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)

No clue what "0xd7" or "position 1" are.

@brianprichardson
Copy link

Yes, in addition to the mul change there have been many others. Suggest you create a virtual environment and install the older version of tensorflow there, unless you want to convert the entire project. There are some tools to try and do that automatically, but you can simply specify the older version more easily.

@michaeljsong99
Copy link

Do we have to change anything in tfdeploy.py (i.e. writing Ops)? I've been failing on the line:

result = y.eval({x: toEval})

in game.py. tf deploy seems to throw an error

len(indices_or_sections)
TypeError: object of type 'int' has no len()

Thanks!

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

3 participants