TECHNOLOGY

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

In this article
THE QUICK TAKE

The serving signature maps logical API keys to graph tensors; keep client-visible names distinct from internal tensor identities during export changes.

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 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 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 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 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 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.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles