2 ms·
Anyone had any luck embedding Bazel in another build system, like CMake? Tensorflow's C++ API seems to only support building with Bazel[1], which makes it painf
by logicchains 8y ago
Anyone had any luck embedding Bazel in another build system, like CMake? Tensorflow's C++ API seems to only support building with Bazel[1], which makes it painful to integrate into a standard C++ build pipeline (don't want the person maintaining the build to come after me with an axe). I'm seriously considering just rewriting to Torch for low latency deployment, which is nicely packaged in the standard manner of library + header file rather than trying to force users to incorporate a heavyweight, esoteric build system just to use the library.
1. https://www.tensorflow.org/guide/extend/cc https://www.tensorflow.org/guide/extend/cc - "The C++ API is only designed to work with TensorFlow bazel build. If you need a stand-alone option, use the C API" (and the C API page notes that it's "designed for simplicity and uniformity rather than convenience", making it unsuitable as a wholesale replacement for the C++ API).
- lstamour 8y agoEventually they’ll refactor the C++ and Java hard-codes functionality into Starlark rules but until then, they don’t support exporting headers from Bazel C++ yet— https://github.com/bazelbuild/bazel/issues/5192 https://github.com/bazelbuild/bazel/issues/5192