We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 159402c commit 6f9d0e0Copy full SHA for 6f9d0e0
1 file changed
onnx_diagnostic/investigate/input_observer.py
@@ -160,7 +160,7 @@ def _build_inputs_completed_with_none_values(
160
if not self.flat_inputs or self._max_args is None or self._max_kwargs is None:
161
raise RuntimeError("No inputs were captured.")
162
163
- flat_index_to_args = []
+ flat_index_to_args: list[int | str] = []
164
arg_sizes = []
165
for index_args, a in enumerate(self._max_args):
166
size = len(torch.utils._pytree.tree_flatten(a)[0])
0 commit comments