提交 b19fcc13 authored 作者: happygds's avatar happygds 提交者: GitHub

Update basic.py

上级 f4c3e28c
......@@ -4218,7 +4218,7 @@ def roll(x, shift, axis=None):
return roll(y, shift, axis=0).reshape(x.shape)
else:
axis = 0
if axis < 0:
if x.ndim == 0:
axis = 0
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论