blob: e5d3760986ff4904f41539224c15b0ffbf00c43a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
Bazel rules to package the TensorFlow C-library and [header
files](https://www.tensorflow.org/code/tensorflow/c/c_api.h)
into an archive.
## TensorFlow C library
The TensorFlow [C
API](https://www.tensorflow.org/code/tensorflow/c/c_api.h)
is typically a requirement of TensorFlow APIs in other languages such as
[Go](https://www.tensorflow.org/code/tensorflow/go)
and [Rust](https://github.com/tensorflow/rust).
The command:
```sh
bazel build --config opt //tensorflow/tools/lib_package:libtensorflow
```
produces `bazel-bin/tensorflow/tools/lib_package/libtensorflow.tar.gz`, which
can be distributed and installed using something like:
```sh
tar -C /usr/local -xzf libtensorflow.tar.gz
```
## Release
Scripts to generate archives using these rules for release are in
[tensorflow/tools/ci_build/linux](https://www.tensorflow.org/code/tensorflow/tools/ci_build/linux)
and
[tensorflow/tools/ci_build/osx](https://www.tensorflow.org/code/tensorflow/tools/ci_build/osx)
|