Skip to main content

OpenVINO™ integration with TensorFlow

OpenVINO™ integration with TensorFlow is a product designed for TensorFlow* developers who want to get started with OpenVINO™ in their inferencing applications. This product delivers OpenVINO™ inline optimizations which enhance inferencing performance with minimal code modifications. OpenVINO™ integration with TensorFlow accelerates inference across many AI models on a variety of Intel® silicon such as:

  • Intel® CPUs
  • Intel® integrated and discrete GPUs

Note: Support for Intel Movidius™ MyriadX VPUs is no longer maintained. Consider previous releases for running on Myriad VPUs.

[Note: For maximum performance, efficiency, tooling customization, and hardware control, we recommend the developers to adopt native OpenVINO™ APIs and its runtime.]

Installation

Requirements

  • Ubuntu 18.04, macOS 11.2.3 or Windows1 10 - 64 bit
  • Python* 3.7, 3.8 or 3.9
  • TensorFlow* v2.9.3

1Windows release supports only Python3.9

This OpenVINO™ integration with TensorFlow package comes with pre-built libraries of OpenVINO™ version 2022.3.0 meaning you do not have to install OpenVINO™ separately. This package supports:

  • Intel® CPUs

  • Intel® integrated GPUs

      pip3 install -U pip
      pip3 install tensorflow==2.9.3
      pip3 install openvino-tensorflow==2.3.0
    

For installation instructions on Windows please refer to OpenVINO™ integration with TensorFlow for Windows

For more details on installation please refer to INSTALL.md, and for build from source options please refer to BUILD.md

Verify Installation

Once you have installed OpenVINO™ integration with TensorFlow, you can use TensorFlow to run inference using a trained model.

To check if OpenVINO™ integration with TensorFlow is properly installed, run

python3 -c "import tensorflow as tf; print('TensorFlow version: ',tf.__version__);\
            import openvino_tensorflow; print(openvino_tensorflow.__version__)"

This should produce an output like:

    TensorFlow version:  2.9.3
    OpenVINO integration with TensorFlow version: b'2.3.0'
    OpenVINO version used for this build: b'2022.3.0'
    TensorFlow version used for this build: v2.9.3
    CXX11_ABI flag used for this build: 1

Usage

By default, Intel® CPU is used to run inference. However, you can change the default option to Intel® integrated or discrete GPUs (GPU, GPU.0, GPU.1 etc). Invoke the following function to change the hardware on which inferencing is done.

openvino_tensorflow.set_backend('<backend_name>')

Supported backends include 'CPU', 'GPU', 'GPU_FP16'.

To determine what processing units are available on your system for inference, use the following function:

openvino_tensorflow.list_backends()

For further performance improvements, it is advised to set the environment variable OPENVINO_TF_CONVERT_VARIABLES_TO_CONSTANTS=1. For more API calls and environment variables, see USAGE.md.

[Note: If a CUDA capable device is present in the system then set the environment variable CUDA_VISIBLE_DEVICES to -1]

Examples

To see what you can do with OpenVINO™ integration with TensorFlow, explore the demos located in the examples repository.

Docker Support

Dockerfiles for Ubuntu* 18.04, Ubuntu* 20.04, and TensorFlow* Serving are provided which can be used to build runtime Docker* images for OpenVINO™ integration with TensorFlow on CPU, GPU. For more details see docker readme.

Prebuilt Images

Try it on Intel® DevCloud

Sample tutorials are also hosted on Intel® DevCloud. The demo applications are implemented using Jupyter Notebooks. You can interactively execute them on Intel® DevCloud nodes, compare the results of OpenVINO™ integration with TensorFlow, native TensorFlow and OpenVINO™.

License

OpenVINO™ integration with TensorFlow is licensed under Apache License Version 2.0. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.

Support

Please submit your questions, feature requests and bug reports via GitHub issues.

How to Contribute

We welcome community contributions to OpenVINO™ integration with TensorFlow. If you have an idea for improvement:

We will review your contribution as soon as possible. If any additional fixes or modifications are necessary, we will guide you and provide feedback. Before you make your contribution, make sure you can build OpenVINO™ integration with TensorFlow and run all the examples with your fix/patch. If you want to introduce a large feature, create test cases for your feature. Upon the verification of your pull request, we will merge it to the repository provided that the pull request has met the above mentioned requirements and proved acceptable.


* Other names and brands may be claimed as the property of others.

Metadata

Release files for openvino-tensorflow 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for openvino-tensorflow 2.3.0
File
openvino_tensorflow-2.3.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
openvino_tensorflow-2.3.0-cp39-cp39-manylinux_2_27_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.27+ x86-64 Details
openvino_tensorflow-2.3.0-cp39-cp39-macosx_12_0_x86_64.whl CPython 3.9 CPython 3.9 macOS 12.0+ x86-64 Details
openvino_tensorflow-2.3.0-cp38-cp38-manylinux_2_27_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.27+ x86-64 Details
openvino_tensorflow-2.3.0-cp38-cp38-macosx_12_0_x86_64.whl CPython 3.8 CPython 3.8 macOS 12.0+ x86-64 Details
openvino_tensorflow-2.3.0-cp37-cp37m-manylinux_2_27_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.27+ x86-64 Details
openvino_tensorflow-2.3.0-cp37-cp37m-macosx_12_0_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 12.0+ x86-64 Details

Total release size: 173.3 MB

Release files / openvino_tensorflow-2.3.0-cp39-cp39-win_amd64.whl

Download URL openvino_tensorflow-2.3.0-cp39-cp39-win_amd64.whl
Size 25.8 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
5c40b7e97f8a7fb73440924d66421f878a277946e868dcebdcdb8a824a4bfada
BLAKE2b-256 checksum
How to use checksums
8bfbb163a3fdff1495c58c9e8f8f1c88d835a27293b9f96b890132340dd770ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Release files / openvino_tensorflow-2.3.0-cp39-cp39-manylinux_2_27_x86_64.whl

Download URL openvino_tensorflow-2.3.0-cp39-cp39-manylinux_2_27_x86_64.whl
Size 27.1 MB
Tags CPython 3.9 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
74864a9e35fcd5a5f1ca928e7c2c832716851cf899accf5d06d27df441969ffc
BLAKE2b-256 checksum
How to use checksums
436bb6c8026d244a1f6041d94d9ead79bbc88a3d1c3211cf71be5e3406cf8429
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Release files / openvino_tensorflow-2.3.0-cp39-cp39-macosx_12_0_x86_64.whl

Download URL openvino_tensorflow-2.3.0-cp39-cp39-macosx_12_0_x86_64.whl
Size 22.1 MB
Tags CPython 3.9 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
61b41d74b37aa12c538b6301fa15cea7048e5c46b4ff55a1a5533a81265a40bf
BLAKE2b-256 checksum
How to use checksums
f381d8b00210c57c3c7e81e7ac16833b6676dfd5ce0c58238027aa711a0bbc4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Release files / openvino_tensorflow-2.3.0-cp38-cp38-manylinux_2_27_x86_64.whl

Download URL openvino_tensorflow-2.3.0-cp38-cp38-manylinux_2_27_x86_64.whl
Size 27.1 MB
Tags CPython 3.8 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
085d8639eccb564b0cad1d567f8787f3f05b7fff053559ae99179e8840a13610
BLAKE2b-256 checksum
How to use checksums
775abca0953db18f1202dd5f68e578ad8df464464093498706fcb1b687a9ebfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Release files / openvino_tensorflow-2.3.0-cp38-cp38-macosx_12_0_x86_64.whl

Download URL openvino_tensorflow-2.3.0-cp38-cp38-macosx_12_0_x86_64.whl
Size 22.1 MB
Tags CPython 3.8 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
33d9cf1e9bfaeb3e65ea5d45b2eacaa55763f6fb517de3842cbb63cad431e64c
BLAKE2b-256 checksum
How to use checksums
95a8686cbc4957953d20a7534daf84185bab0425219d922d3018c5b35603201e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Release files / openvino_tensorflow-2.3.0-cp37-cp37m-manylinux_2_27_x86_64.whl

Download URL openvino_tensorflow-2.3.0-cp37-cp37m-manylinux_2_27_x86_64.whl
Size 27.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
4fd454a24713f8f87a46cf31ae7868a97667b1048cf2c15ec467fa82723f2582
BLAKE2b-256 checksum
How to use checksums
fdce9665f54eca583ed2c253750390bc724a7ed114b51fa1329a8b20e37b59ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Release files / openvino_tensorflow-2.3.0-cp37-cp37m-macosx_12_0_x86_64.whl

Download URL openvino_tensorflow-2.3.0-cp37-cp37m-macosx_12_0_x86_64.whl
Size 22.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
c91e3bf8caedf68ef02a5596f4e34ce253784fc2e40483201fa8bfbad319d82c
BLAKE2b-256 checksum
How to use checksums
6ca2d3eaea54b05aaa263ae58f500f2d401829fd9451404f7a33e17839f9eeb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

2.3.0 This release

7 release files

2.2.0

7 release files

2.1.0

7 release files

2.0.0

7 release files

1.1.0

7 release files

1.0.1

7 release files

1.0.0

8 release files

0.5.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page