Skip to content

Commit

Permalink
support fp64 in huber_loss cuda kernel (#26583)
Browse files Browse the repository at this point in the history
  • Loading branch information
yghstill committed Aug 24, 2020
1 parent 90e6819 commit 8645591
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paddle/fluid/operators/huber_loss_op.cu
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ limitations under the License. */
namespace ops = paddle::operators;
REGISTER_OP_CUDA_KERNEL(
huber_loss,
ops::HuberLossKernel<paddle::platform::CUDADeviceContext, float>);
ops::HuberLossKernel<paddle::platform::CUDADeviceContext, float>,
ops::HuberLossKernel<paddle::platform::CUDADeviceContext, double>);
REGISTER_OP_CUDA_KERNEL(
huber_loss_grad,
ops::HuberLossGradKernel<paddle::platform::CUDADeviceContext, float>);
ops::HuberLossGradKernel<paddle::platform::CUDADeviceContext, float>,
ops::HuberLossGradKernel<paddle::platform::CUDADeviceContext, double>);

0 comments on commit 8645591

Please sign in to comment.