pplonski / keras2cpp

This is a bunch of code to port Keras neural network model into pure C++.
MIT License
679 stars 153 forks source link

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 closed 7 years ago

tonycui0401 commented 7 years ago

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 commented 5 years ago

Dear Tony, did you find the error ?

Thanks.

pplonski commented 5 years ago

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