Closed GivenAward closed 2 years ago
I'm following https://serizba.github.io/cppflow/examples.html to use cppflow. But it causes HEAP CORRUPTION DETECTED error...
my code
#include "cppflow/cppflow.h" int main() { std::string img_path = "C:/0.jpg"; std::string model_path = "C:/saved_model"; auto input = cppflow::decode_jpeg(cppflow::read_file(img_path)); input = cppflow::cast(input, TF_UINT8, TF_FLOAT); input = cppflow::expand_dims(input, 0); cppflow::model model(model_path); auto output = model(input); }
I'm following https://serizba.github.io/cppflow/examples.html to use cppflow. But it causes HEAP CORRUPTION DETECTED error...
my code