STT-tensorflow/tensorflow/tools/lib_package
Mihai Maruseac 2bd19c69ae Move fft2d to stable fork
Release is at https://github.com/petewarden/OouraFFT/releases/tag/v1.0

PiperOrigin-RevId: 315986633
Change-Id: I94323922d827a79f3e1dce58acff7e91640b8e9c
2020-06-11 15:12:44 -07:00
..
BUILD Move fft2d to stable fork 2020-06-11 15:12:44 -07:00
concat_licenses.sh Automated rollback of change 144673014 2017-01-18 08:05:27 -08:00
libtensorflow_java_test.sh Various Bash Improvements (#10572) 2017-06-13 16:55:51 -07:00
libtensorflow_test.c Automated rollback of change 144673014 2017-01-18 08:05:27 -08:00
libtensorflow_test.sh Remove RTLD_GLOBAL when loading pywrap_tensorflow 2017-09-21 11:33:40 -07:00
LibTensorFlowTest.java Java: Scripts to build release artifacts. 2017-02-10 15:03:59 -08:00
README.md tools/lib_package: Fix typo in README 2018-04-19 13:41:33 -07:00

Bazel rules to package the TensorFlow APIs in languages other than Python into archives.

C library

The TensorFlow C API is typically a requirement of TensorFlow APIs in other languages such as Go and Rust.

The following commands:

bazel test --config opt //tensorflow/tools/lib_package:libtensorflow_test
bazel build --config opt //tensorflow/tools/lib_package:libtensorflow

test and produce the archive at bazel-bin/tensorflow/tools/lib_package/libtensorflow.tar.gz, which can be distributed and installed using something like:

tar -C /usr/local -xzf libtensorflow.tar.gz

Java library

The TensorFlow Java API consists of a native library (libtensorflow_jni.so) and a Java archive (JAR). The following commands:

bazel test --config opt //tensorflow/tools/lib_package:libtensorflow_test
bazel build --config opt \
  //tensorflow/tools/lib_package:libtensorflow_jni.tar.gz \
  //tensorflow/java:libtensorflow.jar \
  //tensorflow/java:libtensorflow-src.jar

test and produce the following:

  • The native library (libtensorflow_jni.so) packaged in an archive at: bazel-bin/tensorflow/tools/lib_package/libtensorflow_jni.tar.gz
  • The Java archive at: bazel-bin/tensorflow/java/libtensorflow.jar
  • The Java archive for Java sources at: bazel-bin/tensorflow/java/libtensorflow-src.jar

Release

Scripts to build these archives for TensorFlow releases are in tensorflow/tools/ci_build/linux and tensorflow/tools/ci_build/osx