Browse Source

Fixed `Eval` on platforms < dotnet 5

tags/v0.7.0^2
Martin Evans 2 years ago
parent
commit
dcc82e582e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      LLama/LLamaContext.cs

+ 1
- 1
LLama/LLamaContext.cs View File

@@ -364,7 +364,7 @@ namespace LLama
try
{
tokens.CopyTo(rented, 0);
return Eval(rented, pastTokensCount);
return Eval(rented.AsSpan(0, tokens.Count), pastTokensCount);
}
finally
{


Loading…
Cancel
Save