提交 fe7e3081 authored 作者: Jeremiah Lowin's avatar Jeremiah Lowin

test was failing because of string representation of axes

上级 3311764c
......@@ -7202,8 +7202,8 @@ def tensordot(a, b, axes = 2):
# axes must be a scalar or list/tuple of length 2
if not numpy.isscalar(axes) and len(axes) != 2:
raise ValueError('Axes should be scalar valued or a '
'list/tuple of len 2 (%r was provided)' % axes)
raise ValueError('Axes should be an integer or a '
'list/tuple of len 2 (%s was provided)' % repr(axes))
# if 'axes' is a number of axes to multiply and sum over (trailing axes
# of a, leading axes of b), we can just reshape and use dot.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论