This article explains TensorFlow Core—the low-level, composable APIs for developers who need fine-grained control: researchers, framework authors, and power users extending Keras. It outlines use cases (custom layers/losses/optimizers, bespoke training loops, distribution with DTensor, advanced metrics), shows how Core underpins tools like Keras, TF Model Optimization, and TF Graphics, and highlights non-ML scientific workloads (physics sims, ray tracing, constrained optimization). You’ll meet the core building blocks—tf.Tensor/Variable/TensorArray, primitive ops, tf.math/linalg/random, tf.function, tf.GradientTape, DTensor, and tf.saved_model—plus guidance: don’t re-implement high-level APIs just to copy Keras; combine them when it helps. For hands-on learning, jump to the Quickstart for TensorFlow Core and the Build with Core tutorials.This article explains TensorFlow Core—the low-level, composable APIs for developers who need fine-grained control: researchers, framework authors, and power users extending Keras. It outlines use cases (custom layers/losses/optimizers, bespoke training loops, distribution with DTensor, advanced metrics), shows how Core underpins tools like Keras, TF Model Optimization, and TF Graphics, and highlights non-ML scientific workloads (physics sims, ray tracing, constrained optimization). You’ll meet the core building blocks—tf.Tensor/Variable/TensorArray, primitive ops, tf.math/linalg/random, tf.function, tf.GradientTape, DTensor, and tf.saved_model—plus guidance: don’t re-implement high-level APIs just to copy Keras; combine them when it helps. For hands-on learning, jump to the Quickstart for TensorFlow Core and the Build with Core tutorials.

A Detailed Overview of TensorFlow Core APIs

2025/09/09 19:00
4분 읽기
이 콘텐츠에 대한 의견이나 우려 사항이 있으시면 crypto.news@mexc.com으로 연락주시기 바랍니다

Content Overview

  • Who should use the Core APIs
  • Core API applications
  • Build models and workflows
  • Build frameworks and tools
  • Build for scientific computing
  • Core API components
  • Next steps

\ The TensorFlow Core APIs provide a set of comprehensive, composable, and extensible low-level APIs for high-performance (distributed and accelerated) computation, primarily aimed at building machine learning (ML) models as well as authoring ML workflow tools and frameworks within the TensorFlow platform. These APIs provide a foundation for creating highly configurable models with fine-grained control and new frameworks from the ground up.

The Core APIs can be used as an alternative to high-level machine learning APIs like Keras. These high-level APIs are best suited for general machine learning needs. They offer a variety of modules that abstract away the complexities of ML while also offering functionalities for customization through subclassing. If you are looking for an overview of TensorFlow using Keras, see the Quickstarts and Keras sections in the tutorials.

Who should use the Core APIs

The TensorFlow Core low-level APIs are designed with the following ML developers in mind:

  • Researchers building complex models with high levels of configurability
  • Developers interested in using TensorFlow as a high-performance scientific computing platform
  • Framework authors building tools on top of the TensorFlow platform
  • High-level API users interested in:
  • Adding additional functionalities to their machine learning workflows such as custom layers, losses, models, and optimizers
  • Learning more about the inner workings of their models

Core API applications

The TensorFlow Core APIs provide access to low level functionality within the TensorFlow ecosystem. This API provides more flexibility and control for building ML models, applications, and tools, compared to high-level APIs, such as Keras.

Build models and workflows

The Core APIs are most commonly used to build highly customizable and optimized machine learning models and workflows. Here are some of the ways that the TensorFlow Core APIs can improve your machine learning models and workflow development:

TensorFlow

  • Building non-traditional models or layers that do not fully fit the structures supported by high-level APIs
  • Building custom layers, losses, models, and optimizers within Keras
  • Implementing new optimization techniques to expedite convergence during training
  • Creating custom metrics for performance evaluation
  • Designing highly-configurable training loops with support for features like batching, cross-validation, and distribution strategies

Build frameworks and tools

The TensorFlow Core APIs can also serve as the building blocks for new high-level frameworks. Here are some examples of tools and frameworks that are created with the low-level APIs: TensorFlow

  • Keras: deep learning for humans
  • TensorFlow Model Optimization Toolkit: a suite of tools to optimize ML models for deployment and execution
  • TensorFlow Graphics: a library for making useful graphics functions widely accessible

Build for scientific computing

The TensorFlow Core APIs can also be applied outside the realm of machine learning. Here are a few general-purpose use cases of TensorFlow for scientific computing: TensorFlow

  • Physics simulations for solid mechanics and fluid dynamics problems
  • Graphics rendering applications like ray tracing
  • Solving constrained optimization problems

Core API components

Here are some of the fundamental components that comprise TensorFlow Core’s low- level APIs. Note that this is not an all-encompassing list:

TensorFlow

  • Data structures : tf.Tensortf.Variabletf.TensorArray
  • Primitive APIs: tf.shape, slicing, tf.concattf.bitwise
  • Numerical: tf.mathtf.linalgtf.random
  • Functional components: tf.functiontf.GradientTape
  • Distribution: DTensor
  • Export: tf.saved_model

Next steps

The Build with Core documentation provides tutorials of basic machine learning concepts from scratch. The tutorials in this section help you get comfortable with writing low-level code with Core APIs that you can then apply to more complex use cases of your own.

\

:::tip Note: You should not use the Core APIs to simply re-implement high-level APIs, and it is possible to use high-level APIs, such as Keras, with the Core APIs.

:::

To get started using and learning more about the Core APIs, check out the Quickstart for TensorFlow Core.

\ \

:::info Originally published on the TensorFlow website, this article appears here under a new headline and is licensed under CC BY 4.0. Code samples shared under the Apache 2.0 License.

:::

\

시장 기회
스레숄드 로고
스레숄드 가격(T)
$0.006177
$0.006177$0.006177
-0.32%
USD
스레숄드 (T) 실시간 가격 차트
면책 조항: 본 사이트에 재게시된 글들은 공개 플랫폼에서 가져온 것으로 정보 제공 목적으로만 제공됩니다. 이는 반드시 MEXC의 견해를 반영하는 것은 아닙니다. 모든 권리는 원저자에게 있습니다. 제3자의 권리를 침해하는 콘텐츠가 있다고 판단될 경우, crypto.news@mexc.com으로 연락하여 삭제 요청을 해주시기 바랍니다. MEXC는 콘텐츠의 정확성, 완전성 또는 시의적절성에 대해 어떠한 보증도 하지 않으며, 제공된 정보에 기반하여 취해진 어떠한 조치에 대해서도 책임을 지지 않습니다. 본 콘텐츠는 금융, 법률 또는 기타 전문적인 조언을 구성하지 않으며, MEXC의 추천이나 보증으로 간주되어서는 안 됩니다.

USD1 Genesis: 0 Fees + 12% APR

USD1 Genesis: 0 Fees + 12% APRUSD1 Genesis: 0 Fees + 12% APR

New users: stake for up to 600% APR. Limited time!