Skip to content

Commit

Permalink
Update Activation.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
xytintel authored and ZhiweiYan-96 committed Nov 24, 2024
1 parent e782dcd commit 8aaf6b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ATen/native/xpu/Activation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ std::tuple<Tensor&, Tensor&> log_sigmoid_forward_out_xpu(
}

std::tuple<Tensor, Tensor> log_sigmoid_forward_xpu(const Tensor& input) {
auto result = at::empty_like(input);
auto buffer = at::empty({0}, input.options());
auto result = at::empty_like(input, at::MemoryFormat::Contiguous);
auto buffer = at::empty_like(input, at::MemoryFormat::Contiguous);
log_sigmoid_forward_out_xpu(input, result, buffer);
return std::forward_as_tuple(result, buffer);
}
Expand Down

0 comments on commit 8aaf6b5

Please sign in to comment.