提交 81b563b1 authored 作者: Frederic's avatar Frederic

use str as we use everywhere else

上级 a9c44a89
......@@ -5300,7 +5300,7 @@ def _tensordot_as_dot(a, b, axes, dot, batched):
if not numpy.isscalar(axes) and len(axes) != 2:
raise ValueError('Axes should be an integer or a '
'list/tuple of len 2 (%s was provided)'
% repr(axes))
% str(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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论