提交 94522570 authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Ricardo Vieira

Fix expand_dims type hint

上级 42a7adb9
...@@ -4369,7 +4369,7 @@ atleast_2d = partial(atleast_Nd, n=2) ...@@ -4369,7 +4369,7 @@ atleast_2d = partial(atleast_Nd, n=2)
atleast_3d = partial(atleast_Nd, n=3) atleast_3d = partial(atleast_Nd, n=3)
def expand_dims(a: np.ndarray | TensorVariable, axis: Sequence[int]) -> TensorVariable: def expand_dims(a: "TensorLike", axis: Sequence[int] | int) -> TensorVariable:
"""Expand the shape of an array. """Expand the shape of an array.
Insert a new axis that will appear at the `axis` position in the expanded Insert a new axis that will appear at the `axis` position in the expanded
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论