tensorflow lite c++

C++

When building TensorFlow Lite libraries using the bazel pipeline, the additional TensorFlow ops library can be included and enabled as follows:

  • Enable monolithic builds if necessary by adding the --config=monolithic build flag.
  • Add the TensorFlow ops delegate library dependency to the build dependencies: tensorflow/lite/delegates/flex:delegate.

Note that the necessary TfLiteDelegate will be installed automatically when creating the interpreter at runtime as long as the delegate is linked into the client library. It is not necessary to explicitly install the delegate instance as is typically required with other delegate types.

---

猜你喜欢

转载自blog.csdn.net/ujn20161222/article/details/108854291