Skip to content

Commit

Permalink
[Layers] Fix invokeAttentionLLaMA API (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhuanh authored Jul 4, 2024
1 parent 3551150 commit 98c9d32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layers/attention.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ class Attention {
TimeLine t1("input.layer_norm");
norm.forward(inputBuffer.Data(), imBuffer.Data(), inputBuffer.Rows(), inputBuffer.Stride(),
imBuffer.Stride(), epsilon);
} else {
imBuffer.Assign(inputBuffer.Data(), inputBuffer.Rows(), inputBuffer.Cols(), inputBuffer.Stride());
}
#ifdef XFT_DEBUG
dbg.debugPrint("layer norm:\n");
Expand Down

0 comments on commit 98c9d32

Please sign in to comment.