﻿# TensorFlow Serving SignatureDef: logical input keys can outlive graph tensor names

Preserve a TensorFlow Serving client contract through SignatureDef logical names while allowing exported graph tensor identities to change between model versions.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-tensorflow-serving-signature-logical-input-graph-tensor-name/
Language: en

## An export rename need not become a client rename

A model export changes the internal name of its image-input tensor after a graph refactor. Clients still send the logical input key documented by the prediction API. That can remain a compatible release when the new serving signature maps the same logical key to the new tensor correctly. Distinguish the input vocabulary exposed to callers from internal graph identifiers. Requiring clients to track every tensor-node rename would couple the public API to implementation details that the signature mapping can deliberately hide.

## SignatureDef expresses the mapping

The [signature guide](https://www.tensorflow.org/tfx/serving/signature_defs) describes logical input and output keys mapped through TensorInfo, together with a method name. Its Predict example explicitly separates the logical input from the actual tensor name in the graph. Review the exported mapping rather than guessing from Python variable names used during training. The contract belongs to the serialized serving signature, which can differ from a developer's preferred local naming convention or an intermediate framework graph display.

## SavedModel contains executable serving interfaces

The [SavedModel guide](https://www.tensorflow.org/guide/saved_model) explains exported functions and signatures. Preserve the intended signature identity with the model release, including shapes, types and the transformations expected before invocation. [Tokenizer release manifests](/journal/tokenizer-artifact-release-manifest/) provide related background on identifying model-adjacent interfaces. Unchanged weights do not prove unchanged serving behavior if the exported entry point or its interpretation changes. Conversely, changed internal names alone need not force an external API migration when the logical contract is preserved.

## REST clients use the serving interface

The [REST reference](https://www.tensorflow.org/tfx/serving/api_rest) documents prediction requests, signature selection and metadata. Inspect the actual named inputs expected by the selected signature instead of sending internal graph names copied from another tool. [Explicit input schemas](/journal/data-guide-frictionless-table-schema/) illustrate the same separation between a consumer-visible field contract and its storage or implementation details. Matching a logical key remains necessary but not sufficient: its numeric meaning, type and axis interpretation must still match the released model.

## Compare old caller payloads against the new export

Replay a representative supported request through the real serving interface after the refactor. Inspect signature metadata and compare outputs with an isolated reference, including a deliberately incorrect logical input key. A compatible export preserves the intended API mapping and model interpretation while allowing internal graph identities to evolve. Report compatibility at that boundary rather than claiming that any tensor rename is harmless or that every internal name change necessarily requires updates across all existing clients.
