Skip to content

Commit 80b9bc5

Browse files
committed
mypy
1 parent ccb38db commit 80b9bc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onnx_diagnostic/helpers/ort_session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ def __init__(
158158
def run(
159159
self,
160160
output_names: Optional[List[str]],
161-
feeds: Union[Dict[str, np.ndarray], Dict[str, "OrtValue"]], # noqa: F821
162-
) -> Union[List[np.ndarray], List["OrtValue"]]: # noqa: F821
161+
feeds: Union[Dict[str, np.ndarray], Dict[str, ORTC.OrtValue]],
162+
) -> Union[List[np.ndarray], List[ORTC.OrtValue]]:
163163
"""Calls :meth:`onnxruntime.InferenceSession.run`."""
164164
if any(isinstance(t, np.ndarray) for t in feeds.values()):
165165
return self.sess.run(output_names, feeds)
@@ -411,7 +411,7 @@ def _ortvalues_to_torch_tensor(
411411
self.torch.cuda.nvtx.range_pop()
412412
return tuple(res)
413413

414-
def run(
414+
def run( # type: ignore
415415
self, output_names: Optional[List[str]], feeds: Dict[str, torch.Tensor]
416416
) -> Tuple[torch.Tensor, ...]:
417417
"""

0 commit comments

Comments
 (0)