Skip to content

Commit

Permalink
Update extensions.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzefeng92 authored Mar 28, 2024
1 parent 78932e9 commit c719183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/extensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ auto extRmsNormBackward(const at::Tensor& input, const at::Tensor& grad_output,
std::move(grad_bias));
}

void extApplyRotary(at::Tensor output, const at::Tensor& input,
void extApplyRotary(at::Tensor& output, const at::Tensor& input,
const at::Tensor& cos, const at::Tensor& sin,
const bool conj, const bool interleaved) {
callDiopi(diopiRotaryEmbedding, output, input, cos, sin, conj, interleaved);
Expand Down

0 comments on commit c719183

Please sign in to comment.