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

AttributeError when running a translator #1

Open
TonyWild opened this issue Apr 15, 2021 · 1 comment
Open

AttributeError when running a translator #1

TonyWild opened this issue Apr 15, 2021 · 1 comment

Comments

@TonyWild
Copy link

Hi,
I'm trying to run the demo example, and run the command
python translator/java-dnn-gen.py --model kerasmodels/mnist-lowquality.h5 --outputs "<path to jpf-symbc>/jpf-symbc/src/examples/neurospf" -d demoimage as in readme.md

However, when I trying to run the command, this error happens:
AttributeError: 'int' object has no attribute 'value'
in line 47: prog+=' int run(double[] input)\n'.format(input_shape[1].value)

So when I removed .value from the line 47, the error does not appear at line 47, but the new errors appear at different line, related to this. (_out.shape[1].value also causes a same AttributeError)

Can you check this problem? I'm using tensorflow of version 2.5.0-rc1.
Thank you!

@muhammadusman93
Copy link
Owner

muhammadusman93 commented Apr 17, 2021 via email

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

2 participants