CppFlow library with OpenCV; what I need to include to use Model class?

  c++, tensorflow

I am following this tutorial: https://www.dbersan.com/blog/tensorflow-cpp1/. What is confusing is next part of code:

std::cout<<"Current tensorflow version: "<< TF_Version() << std::endl;
Model m("model");

// Input and output Tensors
Tensor input(m, "serving_default_input_layer");
Tensor prediction(m, "StatefulPartitionedCall");

From where do class Model and class Tensor come from? I think that class Tensor is from tensorflow namespace which is included with "cppflow/cppflow.h", but I can’t find out where is Model declared.

Source: Windows Questions C++

LEAVE A COMMENT