未验证 提交 7dd4a9fe 编写于 作者: N niuliling123 提交者: GitHub

Fix a bug when reduceHigherDim in HIP (#41273)

上级 8df46229
...@@ -808,7 +808,7 @@ __global__ void ReduceHigherDimKernel(const Tx* x, ...@@ -808,7 +808,7 @@ __global__ void ReduceHigherDimKernel(const Tx* x,
1, 1,
1, 1,
left_num); left_num);
kps::ElementwiseUnary<Tx, MPType, REDUCE_VEC_SIZE, 1, 1, TransformOp>( kps::ElementwiseUnary<Tx, MPType, 1, 1, 1, TransformOp>(
&reduce_compute, &reduce_input, transformer); &reduce_compute, &reduce_input, transformer);
kps::Reduce<MPType, kps::Reduce<MPType,
1, 1,
...@@ -836,7 +836,7 @@ __global__ void ReduceHigherDimKernel(const Tx* x, ...@@ -836,7 +836,7 @@ __global__ void ReduceHigherDimKernel(const Tx* x,
1, 1,
1, 1,
left_num); left_num);
kps::ElementwiseUnary<Tx, MPType, REDUCE_VEC_SIZE, 1, 1, TransformOp>( kps::ElementwiseUnary<Tx, MPType, 1, 1, 1, TransformOp>(
&reduce_compute, &reduce_input, transformer); &reduce_compute, &reduce_input, transformer);
kps::Reduce<MPType, kps::Reduce<MPType,
1, 1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册