Skip to content

Commit

Permalink
add fp16 kernel to clip_grad (#41661)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyefeilin authored Apr 12, 2022
1 parent cade001 commit 137dc3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paddle/phi/kernels/gpu/clip_grad_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "paddle/phi/kernels/clip_grad_kernel.h"

#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/common/float16.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/clip_grad_kernel_impl.h"

Expand All @@ -25,4 +26,5 @@ PD_REGISTER_KERNEL(clip_grad,
float,
double,
int,
int64_t) {}
int64_t,
phi::dtype::float16) {}

0 comments on commit 137dc3e

Please sign in to comment.