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

Traceback (most recent call last): File "keras2cpp/dump_to_simple_cpp.py", line 33, in <module> fout.write('layer ' + str(ind) + ' ' + l['class_name'] + '\n') TypeError: string indices must be integers #27

Closed
tonycui0401 opened this issue Jul 24, 2017 · 2 comments

Comments

@tonycui0401
Copy link

Hi I have got another error here:

Traceback (most recent call last):
File "keras2cpp/dump_to_simple_cpp.py", line 33, in
fout.write('layer ' + str(ind) + ' ' + l['class_name'] + '\n')
TypeError: string indices must be integers

could you please let me know why?

@virtualenv
Copy link

Dear Tony, did you find the error ?

Thanks.

@pplonski
Copy link
Owner

pplonski commented Apr 24, 2019

This might be because of version mismatch. I was testing this on Keras version 1.2 and Thenao as backend (if I remember correctly).

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