未验证 提交 6d88fed0 编写于 作者: H HydrogenSulfate 提交者: GitHub

fix(sparse_coo_tensor): convert shape to list when shape is tuple (#49103)

上级 4460c757
......@@ -152,6 +152,7 @@ def sparse_coo_tensor(
if shape is None:
shape = min_shape
else:
shape = list(shape)
if shape < min_shape:
raise ValueError(
"the minimun shape required is {}, but get {}".format(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册