test=develop, fix nonzero astuple=true (#30647)

revert-31068-fix_conv3d_windows
123malin 4 years ago committed by GitHub
parent 0eea5d714f
commit 164275704d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -399,7 +399,7 @@ def nonzero(x, as_tuple=False):
for i in range(rank):
list_out.append(
layers.slice(
outs, axes=[rank - 1], starts=[i], ends=[i + 1]))
outs, axes=[1], starts=[i], ends=[i + 1]))
return tuple(list_out)

Loading…
Cancel
Save