tensorflow/tensorflow
Glossary
Project-specific terms used throughout the codebase. Definitions are paired with the file you'll find the canonical implementation in.
Computation
- Tensor — a typed n-dimensional array with a
DataTypeandTensorShape. Implementation intensorflow/core/framework/tensor.h. The Python user-facing class istf.Tensor(tensorflow/python/framework/ops.py); the eager-only subclass isEagerTensor. - Op / Operation — a node in the dataflow graph. The schema (name, inputs, attrs) is an OpDef declared in
tensorflow/core/ops/*.ccviaREGISTER_OP(...). Pythontf.Operationmirrors this intensorflow/python/framework/ops.py. - Kernel — a concrete implementation of an op for a particular
(device_type, type_constraint). Kernels are subclasses ofOpKernel(tensorflow/core/framework/op_kernel.h) and registered withREGISTER_KERNEL_BUILDER(...)intensorflow/core/kernels/. - Graph —
tensorflow.Graphis aGraphDefplus runtime state. C++ types intensorflow/core/graph/graph.h;GraphDefproto intensorflow/core/framework/graph.proto. - FuncGraph — a
tf.Graphproduced by tracing a@tf.function. Lives intensorflow/python/framework/func_graph.py. - ConcreteFunction — a
FuncGraphspecialized to specific input signatures. Seetensorflow/python/eager/polymorphic_function/concrete_function.py. - HLO — XLA's High-Level Operations IR. Produced by
tf2xla(tensorflow/compiler/tf2xla/) and consumed by the XLA compiler in the openxla/xla repo.
Runtime
- Session — the legacy graph-mode execution context (
tf.compat.v1.Session). Implementation intensorflow/core/common_runtime/direct_session.ccandtensorflow/core/distributed_runtime/master_session.cc. - Executor — runs a partitioned graph asynchronously.
tensorflow/core/common_runtime/executor.cc. - Device — abstraction over CPU, GPU, TPU. Base in
tensorflow/core/framework/device.h; concrete devices intensorflow/core/common_runtime/{threadpool_device.cc,gpu/}andtensorflow/core/tpu/. - Allocator —
Allocator/AllocatorAttributes(tensorflow/core/framework/allocator.h). The GPU uses BFC (tensorflow/core/common_runtime/bfc_allocator.h). - Resource / ResourceMgr — long-lived state attached to a device (variables, hashtables, iterators).
tensorflow/core/framework/resource_mgr.h. - Rendezvous — channel for sending tensors between devices/hosts in a graph.
tensorflow/core/framework/rendezvous.h. - Eager — the default mode that runs ops immediately. Runtime under
tensorflow/core/common_runtime/eager/; Python intensorflow/python/eager/. - Function library / FunctionDef — serialised function graphs callable as ops.
tensorflow/core/framework/function.proto,function.h.
Graph optimization & compilation
- Grappler — graph-level optimizer (
tensorflow/core/grappler/). Runs constant folding, layout, arithmetic, memory, etc. - XLA — Accelerated Linear Algebra compiler. Bridge here is
tensorflow/compiler/tf2xla/; the compiler proper is inopenxla/xla(referenced viathird_party/xla). - JIT (auto-clustering) —
tensorflow/compiler/jit/decides which subgraphs to fuse into XLA clusters at runtime. - AOT —
tfcompileahead-of-time compiler undertensorflow/compiler/aot/that turns a graph into a static binary. - MLIR — LLVM project's multi-level IR. TF defines several dialects under
tensorflow/compiler/mlir/:tf,tfl(TFLite),quant,stablehlo, etc. - StableHLO — versioned IR shared with other ML frameworks; conversion lives in
tensorflow/compiler/mlir/stablehlo/andtensorflow/lite/stablehlo/.
Distribution
- Strategy /
tf.distribute— Python API for multi-device training.tensorflow/python/distribute/. - Master / Worker — gRPC roles for distributed graphs (
tensorflow/core/distributed_runtime/). - DTensor — typed distributed tensor (
tensorflow/dtensor/andtensorflow/python/dtensor/). - Coordinator — coordinates parameter servers / workers in a
ParameterServerStrategycluster. - Collective — collective communication ops (all-reduce, all-gather) implemented via NCCL (
tensorflow/core/nccl/) or rings.
Data and IO
tf.data— input pipeline framework. Python intensorflow/python/data/, C++ intensorflow/core/data/and dataset kernels intensorflow/core/kernels/data/.- TFRecord — record-oriented binary file format used by
tf.data.TFRecordDataset(tensorflow/core/lib/io/record_*). - Iterator — a stateful resource that yields elements from a
Dataset. - Example / SequenceExample — protobuf message families used to serialize training records (
tensorflow/core/example/).
Persistence
- Checkpoint — variable-state-only saving via
tf.train.Checkpoint(tensorflow/python/checkpoint/,tensorflow/python/training/saving/). - SavedModel — graph + variables + signatures, the default export format.
tensorflow/python/saved_model/andtensorflow/cc/saved_model/. - MetaGraphDef — protobuf that describes a SavedModel's signatures, asset list, etc.
TFLite-specific
- Interpreter — TFLite runtime that loads a flatbuffer model and dispatches ops (
tensorflow/lite/interpreter.h). - Delegate — pluggable backend that accepts subgraphs (GPU, NNAPI, XNNPACK, CoreML, Hexagon).
tensorflow/lite/delegates/. - Builtin op — TFLite op enumerated in
tensorflow/lite/builtin_ops.h. - Custom op — user-supplied op registered with
MutableOpResolver. - TFLite Micro — the embedded variant, lives in a separate repo but historical code is in
tensorflow/lite/micro/.
Project terminology
- A. Unique TensorFlower / TensorFlower Gardener — the bot author handle for changes mirrored from Google's internal monorepo. Roughly 60% of recent commits in
masterare attributed to this name; it is not a person. - Copybara — the tool that mirrors PRs into Google's internal codebase and re-exports internal changes to GitHub. See development-workflow.
- Kokoro — Google's internal CI system that runs the post-merge tests.
- TFRT — TensorFlow Runtime, a newer asynchronous runtime fallback (
tensorflow/core/tfrt/). tf.function— Python decorator that traces a Python function into aFuncGraphfor graph-mode execution (tensorflow/python/eager/polymorphic_function/).- AutoGraph — Python source-to-source converter that turns Pythonic control flow (
if,while,for) into TF control-flow ops (tensorflow/python/autograph/). - DTensor — distributed-tensor extension (
tensorflow/dtensor/). - Trackable — base class for objects that participate in checkpointing (
tensorflow/python/trackable/).
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.