Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable the C++ classification sample compilation enabled #211

Closed
Fanhe0718 opened this issue Nov 8, 2021 · 6 comments
Closed

How to enable the C++ classification sample compilation enabled #211

Fanhe0718 opened this issue Nov 8, 2021 · 6 comments

Comments

@Fanhe0718
Copy link

Want to enable macro “TF_SRC_DIR” and compile the C++ classification example, so can anyone give me a simple guide? Thanks a lot.

@ck-intel
Copy link
Contributor

ck-intel commented Nov 9, 2021

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

@Fanhe0718
Copy link
Author

Fanhe0718 commented Nov 10, 2021 via email

@ck-intel
Copy link
Contributor

ck-intel commented Nov 12, 2021

To run the C++ examples you need tensorflow built from source. Copying the build steps from the readme:

  1. 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

  2. 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?

@Fanhe0718
Copy link
Author

Fanhe0718 commented Nov 15, 2021 via email

@ck-intel
Copy link
Contributor

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.

@ck-intel
Copy link
Contributor

Closing the issue as there is no further activity, please reopen it in case the issue is still not resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants