Skip to content

Buyer's Guide

TensorRT Dynamic Shapes: A Profile Range Does Not Validate Every Input Combination

A TensorRT optimization profile gives dimension bounds for each input and an opt shape for autotuning. A requested input combination must also satisfy the network's shape relations. If X[n,4] and Y[n,4] share n, allowing one to eight rows for each input does not permit X with three rows and Y with five. Compare the buyer's required joint shapes with the supplied engine's profile and constraints, then assess execution and performance evidence for those combinations.

Technical contentPublished Updated

01

Read the profile as part of the supplied engine's coverage

A useful shape description identifies every input, its fixed and runtime dimensions, and its min, opt and max shapes within a named profile. Minimum and maximum dimensions bound the permitted sizes; opt identifies the dimensions used for kernel selection. The TensorRT 11.4.0 profile reference also distinguishes tensor dimensions from the values of shape-tensor inputs. If a model uses those values to determine shapes, dimensions alone leave part of its input requirements undescribed.

Keep the inputs together under the profile that would serve the request. With several profiles, a range for X in one profile and a range for Y in another do not establish coverage for their combination in one execution context. Ask which supplied profile covers the complete requested input set.

This explanation uses NVIDIA's rolling dynamic-shape documentation checked October 21, 2026, alongside the explicit TensorRT 11.4.0 release notes and versioned profile reference. It makes no platform-support inference from the shape example. The related ONNX-versus-TensorRT guide addresses the separate question of where the supplied engine can be reused.

References: [N1] [N2] [N4]

02

The network can relate dimensions that the range labels list separately

TensorRT treats dimensions bearing the same name as equal, including dimensions on different inputs. That relationship gives the optimizer information about the computation and lets the runtime diagnose a mismatch. A shared name therefore has a stronger meaning than two inputs having the same minimum and maximum.

Network assertions can express relationships beyond simple shared-name equality. NVIDIA illustrates one dimension being another plus one. Other layer shape requirements still apply. Its advanced documentation specifically requires additional shape inputs to be compatible with profile limits and runtime data-input dimensions. Consequently, removing a shared name would not itself establish that a network can process arbitrary unequal sizes. The useful supplier explanation states the actual relations and how the requested input set satisfies them.

References: [N1] [N3]

03

JS-16: why 3/5, 7/7 and 9/9 lead to different findings

Consider fictional inputs X[n,4] and Y[n,4]. Each row has four elements, and the leading dimensions share the name n. Both inputs have min [1,4], opt [4,4] and max [8,4]. Stipulate that all other dimension conditions are satisfied. This is an original reasoning example; no engine is built or executed.

First request X[3,4] with Y[5,4]. Three and five each lie between one and eight, and both inputs retain four columns. The individual range checks pass. The joint request nevertheless breaks the shared n condition because 3 does not equal 5. Matching the two range labels would miss the reason this requested combination is outside the stated shape conditions.

Next request X[7,4] with Y[7,4]. Both leading dimensions are in range and equal, so this pair meets the stated shape conditions. Its difference from opt [4,4] is not a reason to exclude it. That finding supplies no measured latency, numerical-quality result, memory-fit result or compatibility finding for a real deployment.

Finally request X[9,4] with Y[9,4]. Equality holds, but nine exceeds both maximum row counts. Fixing the equality issue does not remove the profile bounds. Neither the 3/5 pair nor the 9/9 pair belongs to this example's permitted intersection, for different reasons.

04

The 64-to-eight comparison counts an intersection

Ignoring the shared name temporarily, X has eight possible integer row counts and Y has eight. Their independent ranges describe 8 x 8 = 64 row-count pairs. Equality retains only (1,1), (2,2), (3,3), (4,4), (5,5), (6,6), (7,7) and (8,8): eight pairs.

Picture the 64 pairs as an eight-by-eight square. The equal pairs form its diagonal. The profile bounds supply the square; shared n restricts this example to the diagonal. A different network relation would produce a different intersection.

The counts establish neither 64 executable cases nor eight validated cases, and they say nothing about the number of engine files required. They expose why independent bounds cannot stand in for the joint shape conditions. Counting that intersection is still separate from demonstrating that a supplied implementation meets the buyer's workload requirements.

05

Use opt to interpret optimization, then compare workload results

The versioned profile reference explains that the builder selects kernels for the optimum dimensions while covering valid input sizes within the min/max range. Opt is therefore a target for implementation selection. It is neither an exclusivity label nor a claim that every other valid shape has the same response time.

For JS-16, evidence collected only at 4/4 would leave the buyer's 7/7 performance question unanswered. Request results identifying the complete input-shape combinations, supplied engine and profile, runtime version, target hardware, numerical settings and workload conditions. Keep accepted outputs, failures and the timing boundary visible so the comparison concerns the same useful work. A shape-coverage statement and a performance result answer different parts of the purchase.

If an offer also relies on CUDA graph replay, establish whether that supplied execution path covers the requested combinations. The related CUDA graph guide explains capture coverage; the profile range alone does not settle it.

References: [N2]

06

Distinguish a runtime placeholder from an unresolved output

An engine-level shape description can retain -1 for a dimension whose size is supplied at runtime. The execution context describes a particular use of that engine with concrete input dimensions. A placeholder in the engine description does not mean that the buyer's request has a negative-sized input.

NVIDIA separates consistency with an individual input's profile from consistency of the whole network after the required input information is supplied. Evidence that one input shape was accepted therefore does not establish that the complete requested combination is consistent.

An output dimension can also depend on input values, rather than on input dimensions alone. For example, the number of nonzero elements can vary between tensors with identical shapes. Such a data-dependent output dimension can remain -1 before its size is known. A supplier's explanation should distinguish this legitimate unresolved size from missing input information or inconsistent shapes; a blanket claim that any -1 means invalid inputs would be misleading.

References: [N1]

07

Compare two offers against the joint shapes the buyer needs

Suppose a buyer wants to assess the JS-16 combinations 3/5, 7/7 and 9/9. Fictional Offer A says only that both inputs support one to eight rows, with opt four. A has supplied useful bounds, but has not explained the shared relation. Its statement leaves the status of the in-range 3/5 combination unresolved. It also supplies no result for 7/7; a broad range label cannot fill that gap.

Fictional Offer B supplies the identified engine and profile description, the shared n relation and evidence organized by complete requested shape combinations. Its evidence distinguishes declared coverage, combinations actually exercised, observed results, exceptions and cases left untested. These are proposed evidence contents, not invented execution outcomes. B's description lets the buyer compare the required combinations with a stated joint scope instead of inferring it from separate labels.

Applying the stipulated JS-16 conditions makes the purchasing consequence explicit. A requirement for 3/5 conflicts with equality. A requirement for 9/9 exceeds the bounds. Those needs call for the software supplier to assess another supported model/profile arrangement, or for the buyer to change the requirement. A requirement for 7/7 fits the stated conditions and can proceed to evaluation of actual execution, output and workload evidence. Merely restating opt four resolves none of these differences.

The buyer can then identify a covered requirement, a conflicting requirement or a remaining evidence gap. A supplier that documents a narrower scope clearly may be suitable for that narrower need; a larger advertised range is useful only when the required joint combinations and results are addressed.

08

Connect selected equipment to its physical deployment scope

If the separately selected system requires equipment delivery and installation, Leviathan's Complete Physical Infrastructure Deployment service is the relevant next step for agreed receiving, rack integration, onsite installation, IT cabling and handoff records. Use the related service and project inquiry with a nonconfidential equipment summary, destination, target window and required physical handoff. Engine building, inference tuning and application acceptance remain with the appointed software team.

References: [L1]

09Sources

Primary sources

  1. [N1]
    NVIDIA TensorRT - Dynamic Shapes: Core ConceptsChecked 2026-10-21. Rolling documentation checked in the TensorRT 11.4.0 context. Covers per-input versus network consistency, named dimensions, assertions and dynamic outputs.
  2. [N2]
    NVIDIA TensorRT 11.4.0 - IOptimizationProfileChecked 2026-10-21. Versioned definitions of dimension bounds, optimum kernel-selection dimensions and shape-input value ranges; used conceptually rather than as an operating procedure.
  3. [N3]
    NVIDIA TensorRT - Dynamic Shapes: Advanced TopicsChecked 2026-10-21. Rolling documentation checked in the TensorRT 11.4.0 context; additional shape-input compatibility requirements qualify the dimension-only example.
  4. [N4]
    NVIDIA TensorRT 11.4.0 Release NotesChecked 2026-10-21. Explicit release context. Shape-range reasoning does not establish support for a particular operating system, device or deployment.
  5. [L1]
    Leviathan Systems - Complete Physical Infrastructure DeploymentChecked 2026-10-21. The agreed physical delivery and handoff scope supplies the next step when selected equipment needs installation.

Contact

Does the selected system need physical installation?

Share a nonconfidential equipment summary, site, target window and physical handoff requirements to discuss deployment scope and availability.