Skip to content

Commit

Permalink
Merge pull request #981 from Lyrcaxis/fix-LTDAN-init
Browse files Browse the repository at this point in the history
Fixed `LLamaTokenDataArrayNative.Create`'s size initialization
  • Loading branch information
martindevans authored Nov 13, 2024
2 parents 5ada3ae + 3c1daa7 commit 45afacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LLama/Native/LLamaTokenDataArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public static MemoryHandle Create(LLamaTokenDataArray array, out LLamaTokenDataA
native = new LLamaTokenDataArrayNative
{
_data = (LLamaTokenData*)handle.Pointer,
Size = (ulong)array.Data.Length,
_size = (ulong)array.Data.Length,
Sorted = array.Sorted
};
}
Expand Down

0 comments on commit 45afacc

Please sign in to comment.