Skip to content

Commit

Permalink
Update log_loss
Browse files Browse the repository at this point in the history
  • Loading branch information
linjieccc committed Mar 3, 2022
1 parent 43dcc5a commit bce1553
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion paddle/phi/kernels/impl/log_loss_grad_kernel_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ void LogLossGradKernel(const Context& dev_ctx,

if (in_grad) {
dev_ctx.template Alloc<T>(in_grad);
in_grad->data<T>();
auto dx = EigenVector<T>::Flatten(*in_grad);
phi::funcs::EigenLogLossGrad<std::decay_t<decltype(place)>, T>::Eval(
place, dx, dl, prediction, label_out, epsilon);
Expand Down
1 change: 0 additions & 1 deletion paddle/phi/kernels/impl/log_loss_kernel_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ void LogLossKernel(const Context& dev_ctx,
float epsilon,
DenseTensor* out) {
dev_ctx.template Alloc<T>(out);
out->data<T>();

auto prediction = EigenVector<T>::Flatten(input);
auto label_out = EigenVector<T>::Flatten(label);
Expand Down

1 comment on commit bce1553

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.