Skip to content

Commit 33ffe85

Browse files
committed
fix
1 parent 0c8c834 commit 33ffe85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/phi/kernels/cpu/trunc_grad_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void TruncGradKernel(const Context& dev_ctx,
2525
DenseTensor* in_grad) {
2626
T* dx_data = dev_ctx.template Alloc<T>(in_grad);
2727

28-
int64_t numel = static_cast<int>(in_grad->numel());
28+
int64_t numel = in_grad->numel();
2929
memset(dx_data, 0.0, numel * sizeof(T));
3030
}
3131

0 commit comments

Comments
 (0)