Skip to content

Commit a60697a

Browse files
committed
fix issues
1 parent 3b645e0 commit a60697a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

_doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
("py:class", "default=sklearn.utils.metadata_routing.UNCHANGED"),
109109
("py:class", "ModelProto"),
110110
("py:class", "Module"),
111-
("py:class", "numpy._typing._nested_sequence._NestedSequence"),
112111
("py:class", "torch.fx.passes.operator_support.OperatorSupport"),
113112
("py:class", "torch.fx.proxy.TracerBase"),
114113
("py:class", "torch.utils._pytree.Context"),
@@ -125,6 +124,7 @@
125124
("py:func", ".*numpy[.].*"),
126125
("py:func", ".*scipy[.].*"),
127126
# ("py:func", ".*torch.ops.higher_order.*"),
127+
("py:class", ".*numpy._typing.[.].*"),
128128
("py:class", ".*onnxruntime[.].*"),
129129
("py:meth", ".*onnxruntime[.].*"),
130130
]

onnx_diagnostic/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def from_array_ml_dtypes(arr: npt.ArrayLike, name: Optional[str] = None) -> Tens
625625
"""
626626
import ml_dtypes
627627

628-
assert isinstance(arr, np.ndarray), f"arr must be of type np.ndarray, got {type(arr)}"
628+
assert isinstance(arr, np.ndarray), f"arr must be of type numpy.ndarray, got {type(arr)}"
629629

630630
tensor = TensorProto()
631631
tensor.dims.extend(arr.shape)

onnx_diagnostic/ort_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __init__(
129129
class InferenceSessionForNumpy(_InferenceSession):
130130
"""
131131
Wraps an `onnxruntime.InferenceSession` to overload method `run`
132-
to support :class:`np.ndarray`.
132+
to support :class:`numpy.ndarray`.
133133
134134
:param sess: model or inference session
135135
:param session_options: options

0 commit comments

Comments
 (0)