You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

llama.native.llamabeamview.md 844 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # LLamaBeamView
  2. Namespace: LLama.Native
  3. Information about a single beam in a beam search
  4. ```csharp
  5. public struct LLamaBeamView
  6. ```
  7. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ValueType](https://docs.microsoft.com/en-us/dotnet/api/system.valuetype) → [LLamaBeamView](./llama.native.llamabeamview.md)
  8. ## Fields
  9. ### **CumulativeProbability**
  10. Cumulative beam probability (renormalized relative to all beams)
  11. ```csharp
  12. public float CumulativeProbability;
  13. ```
  14. ### **EndOfBeam**
  15. Callback should set this to true when a beam is at end-of-beam.
  16. ```csharp
  17. public bool EndOfBeam;
  18. ```
  19. ## Properties
  20. ### **Tokens**
  21. Tokens in this beam
  22. ```csharp
  23. public Span<LLamaToken> Tokens { get; }
  24. ```
  25. #### Property Value
  26. [Span&lt;LLamaToken&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.span-1)<br>