Skip to content

Commit 45afacc

Browse files
authored
Merge pull request #981 from Lyrcaxis/fix-LTDAN-init
Fixed `LLamaTokenDataArrayNative.Create`'s size initialization
2 parents 5ada3ae + 3c1daa7 commit 45afacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LLama/Native/LLamaTokenDataArray.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public static MemoryHandle Create(LLamaTokenDataArray array, out LLamaTokenDataA
219219
native = new LLamaTokenDataArrayNative
220220
{
221221
_data = (LLamaTokenData*)handle.Pointer,
222-
Size = (ulong)array.Data.Length,
222+
_size = (ulong)array.Data.Length,
223223
Sorted = array.Sorted
224224
};
225225
}

0 commit comments

Comments
 (0)