Skip to content

Commit d71c5f0

Browse files
committed
more
1 parent 6f9d0e0 commit d71c5f0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

onnx_diagnostic/investigate/input_observer.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ def _flatten_unflatten_for_dynamic_shapes(
6969
def _infer_dynamic_dimensions(
7070
shape_list: Sequence[tuple[int, ...]], add_batch_dimension: bool = False
7171
) -> list[int]:
72-
"""
73-
Returns the list of dynamic dimensions given a list of shapes
72+
"""Returns the list of dynamic dimensions given a list of shapes
7473
corresponding to the same tensor.
7574
7675
Args:
@@ -215,8 +214,8 @@ def _build_inputs_completed_with_none_values(
215214
def infer_dynamic_shapes(
216215
self, add_batch_dimension_for: set[int | str] | None = None
217216
) -> tuple[dict[int, Any], ...] | dict[str, dict[int, Any]]:
218-
"""
219-
Infers dynamic shapes. Most of the time, models do support a batch dimension
217+
"""Infers dynamic shapes. based on the collected tensors.
218+
Most of the time, models do support a batch dimension
220219
but this batch dimension has the same value for every input sample.
221220
Instead of running inference on new samples, argument `add_batch_dimension_for`
222221
can be used to tell the first dimension is a dynamic dimension for a particular

0 commit comments

Comments
 (0)