serizba / cppflow

Run TensorFlow models in C++ without installation and without Bazel
https://serizba.github.io/cppflow/
MIT License
774 stars 177 forks source link

cppflow::read_file can"t load string #225

Closed Whatsetsthisend closed 1 year ago

Whatsetsthisend commented 1 year ago

Thank you for your great work, but I seem to have a little question day, When i use: cppflow::read_file((std::string)(ImagePath)),

i get this error: Malformed TF_STRING tensor; element 0 out of range i am sure my Imagepath is right thank you

serizba commented 1 year ago

Hi,

I've never encountered such error. Could you provide a complete example to try to reproduce your problem?

Thanks!

Whatsetsthisend commented 1 year ago

I'm sorry I've solved this problem,it maked by version of Libtensorflow,use libtensorflow2.4.0 it will be fine