Skip to content

Commit

Permalink
Fix the type of out_shape to tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
asi1024 committed Jul 22, 2020
1 parent be996e8 commit 3997341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cupy/cutensor.py
Expand Up @@ -527,8 +527,8 @@ def _try_reduction_routine(x, axis, dtype, out, keepdims, op, alpha, beta):
in_arg = x

reduce_axis, out_axis = _reduction._get_axis(axis, x.ndim)
out_shape = _reduction._get_out_shape(
x.shape, reduce_axis, out_axis, keepdims)
out_shape = tuple(
_reduction._get_out_shape(x.shape, reduce_axis, out_axis, keepdims))
if out is None:
out = cupy.empty(out_shape, dtype)
elif out.shape != out_shape:
Expand Down

0 comments on commit 3997341

Please sign in to comment.