未验证 提交 74db6690 编写于 作者: Q Qi Li 提交者: GitHub

[NPU] fix bce loss op, test=develop (#34170)

上级 85642a0d
......@@ -69,9 +69,9 @@ namespace ops = paddle::operators;
namespace plat = paddle::platform;
REGISTER_OP_NPU_KERNEL(
bce_loss, ops::BCELossNPUKernel<plat::CUDADeviceContext, float>,
ops::BCELossNPUKernel<plat::CUDADeviceContext, plat::float16>);
bce_loss, ops::BCELossNPUKernel<plat::NPUDeviceContext, float>,
ops::BCELossNPUKernel<plat::NPUDeviceContext, plat::float16>);
REGISTER_OP_NPU_KERNEL(
bce_loss_grad, ops::BCELossGradNPUKernel<plat::CUDADeviceContext, float>,
ops::BCELossGradNPUKernel<plat::CUDADeviceContext, plat::float16>);
bce_loss_grad, ops::BCELossGradNPUKernel<plat::NPUDeviceContext, float>,
ops::BCELossGradNPUKernel<plat::NPUDeviceContext, plat::float16>);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册