Socket
Socket
Sign inDemoInstall

tfx-bsl

Package Overview
Dependencies
0
Maintainers
4
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tfx-bsl

tfx_bsl (TFX Basic Shared Libraries) contains libraries shared by many TFX (TensorFlow eXtended) libraries and components.


Maintainers
4

Readme

TFX Basic Shared Libraries

Python PyPI

TFX Basic Shared Libraries (tfx_bsl) contains libraries shared by many TensorFlow eXtended (TFX) components.

Only symbols exported by sub-modules under tfx_bsl/public are intended for direct use by TFX users, including by standalone TFX library (e.g. TFDV, TFMA, TFT) users, TFX pipeline authors and TFX component authors. Those APIs will become stable and follow semantic versioning once tfx_bsl goes beyond 1.0.

APIs under other directories should be considered internal to TFX (and therefore there is no backward or forward compatibility guarantee for them).

Each minor version of a TFX library or TFX itself, if it needs to depend on tfx_bsl, will depend on a specific minor version of it (e.g. tensorflow_data_validation 0.14.* will depend on, and only work with, tfx_bsl 0.14.*)

Installing from PyPI

tfx_bsl is available as a PyPI package.

pip install tfx-bsl

Nightly Packages

TFX-BSL also hosts nightly packages at https://pypi-nightly.tensorflow.org on Google Cloud. To install the latest nightly package, please use the following command:

pip install --extra-index-url https://pypi-nightly.tensorflow.org/simple tfx-bsl

This will install the nightly packages for the major dependencies of TFX-BSL such as TensorFlow Metadata (TFMD).

However it is a dependency of many TFX components and usually as a user you don't need to install it directly.

Build with Docker

If you want to build a TFX component from the master branch, past the latest release, you may also have to build the latest tfx_bsl, as that TFX component might have depended on new features introduced past the latest tfx_bsl release.

Building from Docker is the recommended way to build tfx_bsl under Linux, and is continuously tested at Google.

1. Install Docker

Please first install docker and docker-compose by following the directions.

2. Clone the tfx_bsl repository

git clone https://github.com/tensorflow/tfx-bsl
cd tfx-bsl

Note that these instructions will install the latest master branch of tfx-bsl. If you want to install a specific branch (such as a release branch), pass -b <branchname> to the git clone command.

3. Build the pip package

Then, run the following at the project root:

sudo docker-compose build manylinux2010
sudo docker-compose run -e PYTHON_VERSION=${PYTHON_VERSION} manylinux2010

where PYTHON_VERSION is one of {39}.

A wheel will be produced under dist/.

4. Install the pip package

pip install dist/*.whl

Build from source

1. Prerequisites

Install NumPy

If NumPy is not installed on your system, install it now by following these directions.

Install Bazel

If Bazel is not installed on your system, install it now by following these directions.

2. Clone the tfx_bsl repository

git clone https://github.com/tensorflow/tfx-bsl
cd tfx-bsl

Note that these instructions will install the latest master branch of tfx_bsl If you want to install a specific branch (such as a release branch), pass -b <branchname> to the git clone command.

3. Build the pip package

tfx_bsl wheel is Python version dependent -- to build the pip package that works for a specific Python version, use that Python binary to run:

python setup.py bdist_wheel

You can find the generated .whl file in the dist subdirectory.

4. Install the pip package

pip install dist/*.whl

Supported platforms

tfx_bsl is tested on the following 64-bit operating systems:

  • macOS 10.12.6 (Sierra) or later.
  • Ubuntu 20.04 or later.

Compatible versions

The following table is the tfx_bsl package versions that are compatible with each other. This is determined by our testing framework, but other untested combinations may also work.

tfx-bslapache-beam[gcp]pyarrowtensorflowtensorflow-metadatatensorflow-serving-api
GitHub master2.47.010.0.0nightly (2.x)1.15.02.15.1
1.15.12.47.010.0.02.151.15.02.15.1
1.15.02.47.010.0.02.151.15.02.15.1
1.14.02.47.010.0.02.131.14.02.13.0
1.13.02.40.06.0.02.121.13.12.9.0
1.12.02.40.06.0.02.111.12.02.9.0
1.11.02.40.06.0.01.15 / 2.101.11.02.9.0
1.10.02.40.06.0.01.15 / 2.91.10.02.9.0
1.9.02.38.05.0.01.15 / 2.91.9.02.9.0
1.8.02.38.05.0.01.15 / 2.81.8.02.8.0
1.7.02.36.05.0.01.15 / 2.81.7.02.8.0
1.6.02.35.05.0.01.15 / 2.71.6.02.7.0
1.5.02.34.05.0.01.15 / 2.71.5.02.7.0
1.4.02.31.05.0.01.15 / 2.61.4.02.6.0
1.3.02.31.02.0.01.15 / 2.61.2.02.6.0
1.2.02.31.02.0.01.15 / 2.51.2.02.5.1
1.1.02.29.02.0.01.15 / 2.51.1.02.5.1
1.0.02.29.02.0.01.15 / 2.51.0.02.5.1
0.30.02.28.02.0.01.15 / 2.40.30.02.4.0
0.29.02.28.02.0.01.15 / 2.40.29.02.4.0
0.28.02.28.02.0.01.15 / 2.40.28.02.4.0
0.27.12.27.02.0.01.15 / 2.40.27.02.4.0
0.27.02.27.02.0.01.15 / 2.40.27.02.4.0
0.26.12.25.00.17.01.15 / 2.30.27.02.3.0
0.26.02.25.00.17.01.15 / 2.30.27.02.3.0

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc