How to enable the C++ classification sample compilation enabled
Fanhe0718 opened this issue · 6 comments
Want to enable macro “TF_SRC_DIR” and compile the C++ classification example, so can anyone give me a simple guide? Thanks a lot.
Follow the steps mentioned here to build C++ classification sample: https://github.com/openvinotoolkit/openvino_tensorflow/blob/master/examples/README.md#c-implementation-for-classification
To run the C++ examples you need tensorflow built from source. Copying the build steps from the readme:
-
To built tensorflow from source, please use following script:
python3 build_tf.py --output_dir "path-to-tensorflow-dir"
Note: here "path-to-tensorflow-dir" is a user defined location for saving the Tensorflow libs.
https://github.com/openvinotoolkit/openvino_tensorflow/blob/master/docs/BUILD.md#TensorFlow -
Once your TF build is successful, pls run the following command:
python3 build_ovtf.py --use_tensorflow_from_location "path-to-tensorflow-dir"
and it build the OpenVINO integration with Tensorflow library as well as classification samples too, the build_ovtf.py set the TF_SRC_DIR macro in it and you don't need to set that up separately.
Let me know exactly in which step are getting the error? and what is the error?
Check line 517 of the build file: https://github.com/openvinotoolkit/openvino_tensorflow/blob/master/build_ovtf.py
The flag "TF_SRC_DIR" is added automatically, if the tensorflow source location is provided properly.
Closing the issue as there is no further activity, please reopen it in case the issue is still not resolved.