Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction to Kunpeng TensorFlow

Latest Updates

  • [2026-06-30]: Added the TensorFlow ANNC static graph fusion feature, adapted to Kunpeng 950 processor and supporting operators such as KPFusedGather and KPFusedSparseReshape. Added the constant folding optimization to TensorFlow ANNC for graph compilation, adapted to Kunpeng 950 processor.
  • [2026-03-30]: Added the TensorFlow KDNN thread passthrough feature, supporting operators such as batchmatmul, concat, and softmax.
  • [2025-09-30]: Added the TensorFlow ANNC for graph compilation optimization feature, providing optimizations including computational graph optimization, and generation and integration of high-performance fused operators.
  • [2025-06-30]: Released the TensorFlow Serving thread scheduling optimization feature for the first time.

Project Introduction

Kunpeng TensorFlow is a high-performance inference acceleration extension based on open-source TensorFlow. It focuses on efficient execution in search, recommendation, and advertising inference scenarios. It significantly improves throughput and cuts latency for model inference through in-depth enhancements in graph optimization, operators, and runtime, providing top performance for AI applications based on Kunpeng CPUs.

  • Executor layer: runtime optimization
  • Kernel layer: custom operators, which provide high-performance DNN operators based on KDNN.
  • XLA layer: provides the Kunpeng graph compiler based on ANNC.

Figure 1 Project architecture

Feature Description

Feature

Description

Thread scheduling optimization

Refines operator scheduling algorithms and provides other thread management optimizations, delivering throughput improvements for concurrent model inference.

ANNC for graph compilation optimization

ANNC is a compiler dedicated to accelerating neural network computing. It focuses on technologies including computational graph optimization, generation and integration of high-performance fused operators, and efficient code generation and optimization. These capabilities significantly improve inference performance in recommendation scenarios.

KDNN thread passthrough

Transparently passes the upper-layer framework thread pool to the KDNN operator library. By reusing the framework thread pool, KDNN operator scheduling is optimized, improving operator performance.

ANNC static graph fusion

Fuses multiple embedding operators into a single operator. Using the remapper mechanism, subgraphs with fixed structural patterns are replaced during graph compilation, improving inference throughput.

For details about Kunpeng TensorFlow features, see Feature Introduction.

Directory Structure

tensorflow
├── 0001-tensorflow_2.15.0-optimize.patch               # TensorFlow patch file
├── 0002-tensorflow_2.15.0-annc-optimize.patch          # Patch file for TensorFlow ANNC static graph fusion
├── LICENSE                                             # License file
├── README_en.md                                        # Project introduction file
└── docs                                                # Documentation
│   └── en                                                # English document directory
│       ├── figures                                     # Figure resource directory
│       ├── api_reference.md                            # API Reference
│       ├── quick_start.md                              # Quick Start
│       ├── release_notes.md                            # Release Notes
│       ├── installation_guide.md                       # Installation guide
│       ├── feature_introduction.md                     # Feature introduction 

Version Description

For details about the updates of the Kunpeng TensorFlow version, see Release Notes.

Documents

Resource Type

Resource Name

Resource Description

Document

Release Notes

Provides basic information and feature updates of each Kunpeng TensorFlow release.

Document

Feature Introduction

Describes the Kunpeng TensorFlow features.

Document

Quick Start

Provides guidance for getting started with Kunpeng TensorFlow.

Document

Installation Guide

Describes how to compile and install Kunpeng TensorFlow.

Document

API Reference

Describes how to use Kunpeng TensorFlow APIs.

Disclaimer

This code repository contributes to the TensorFlow community. It strictly adheres to the coding style and methods, as well as security design of the native open-source software. Any vulnerability and security issues of the software shall be resolved by the corresponding upstream communities according to their response mechanisms. Please pay attention to the notifications and version updates released by the upstream communities. The Kunpeng computing community does not assume any responsibility for software vulnerabilities and security issues.

License

This project is licensed under Apache License 2.0. For details, see the LICENSE.

The documentation of this project is released under the CC-BY 4.0 license. For details, see the LICENSE.

Contribution Statement

We welcome your contributions to the community. If you have any questions/suggestions or want to provide feedback on feature requirements and bug reports, you can submit issues. For details, see Contribution Guideline. You are also welcome to share insights in Discussions. Thank you for your support.

Acknowledgments

Kunpeng TensorFlow is jointly developed by the following Huawei department:

  • Kunpeng Computing BoostKit Development Dept

Thank you for every PR from the community. We welcome your contributions to Kunpeng TensorFlow!