Skip to content

Commit ef31ec6

Browse files
authored
Merge pull request SciSharp#1140 from phil-scott-78/decode_result
Adding extra values to the decode_result enum
2 parents d97fbb3 + 7e8e140 commit ef31ec6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

LLama/Native/DecodeResult.cs

+15
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,19 @@ public enum DecodeResult
1919
/// Could not find a KV slot for the batch (try reducing the size of the batch or increase the context)
2020
/// </summary>
2121
NoKvSlot = 1,
22+
23+
/// <summary>
24+
/// Compute was aborted (e.g. due to callback request or timeout)
25+
/// </summary>
26+
ComputeAborted = 2,
27+
28+
/// <summary>
29+
/// Failed to allocate memory or reserve output space
30+
/// </summary>
31+
AllocationFailed = -2,
32+
33+
/// <summary>
34+
/// General failure during decode (e.g. internal error, slot failure)
35+
/// </summary>
36+
DecodeFailed = -3,
2237
}

0 commit comments

Comments
 (0)