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.llamastate.md 3.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # LLamaState
  2. Namespace: LLama
  3. ```csharp
  4. public class LLamaState : System.IEquatable`1[[LLama.LLamaState, LLamaSharp, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null]]
  5. ```
  6. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [LLamaState](./llama.llamastate.md)<br>
  7. Implements [IEquatable&lt;LLamaState&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.iequatable-1)
  8. ## Properties
  9. ### **EvalTokens**
  10. ```csharp
  11. public Queue<int> EvalTokens { get; set; }
  12. ```
  13. #### Property Value
  14. [Queue&lt;Int32&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1)<br>
  15. ### **EvalLogits**
  16. ```csharp
  17. public Queue<Single[]> EvalLogits { get; set; }
  18. ```
  19. #### Property Value
  20. [Queue&lt;Single[]&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1)<br>
  21. ### **State**
  22. ```csharp
  23. public Byte[] State { get; set; }
  24. ```
  25. #### Property Value
  26. [Byte[]](https://docs.microsoft.com/en-us/dotnet/api/system.byte)<br>
  27. ### **Size**
  28. ```csharp
  29. public int Size { get; set; }
  30. ```
  31. #### Property Value
  32. [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  33. ## Constructors
  34. ### **LLamaState(Queue&lt;Int32&gt;, Queue&lt;Single[]&gt;, Byte[], Int32)**
  35. ```csharp
  36. public LLamaState(Queue<int> EvalTokens, Queue<Single[]> EvalLogits, Byte[] State, int Size)
  37. ```
  38. #### Parameters
  39. `EvalTokens` [Queue&lt;Int32&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1)<br>
  40. `EvalLogits` [Queue&lt;Single[]&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1)<br>
  41. `State` [Byte[]](https://docs.microsoft.com/en-us/dotnet/api/system.byte)<br>
  42. `Size` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  43. ## Methods
  44. ### **ToString()**
  45. ```csharp
  46. public string ToString()
  47. ```
  48. #### Returns
  49. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  50. ### **PrintMembers(StringBuilder)**
  51. ```csharp
  52. protected bool PrintMembers(StringBuilder builder)
  53. ```
  54. #### Parameters
  55. `builder` [StringBuilder](https://docs.microsoft.com/en-us/dotnet/api/system.text.stringbuilder)<br>
  56. #### Returns
  57. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  58. ### **GetHashCode()**
  59. ```csharp
  60. public int GetHashCode()
  61. ```
  62. #### Returns
  63. [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  64. ### **Equals(Object)**
  65. ```csharp
  66. public bool Equals(object obj)
  67. ```
  68. #### Parameters
  69. `obj` [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)<br>
  70. #### Returns
  71. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  72. ### **Equals(LLamaState)**
  73. ```csharp
  74. public bool Equals(LLamaState other)
  75. ```
  76. #### Parameters
  77. `other` [LLamaState](./llama.llamastate.md)<br>
  78. #### Returns
  79. [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
  80. ### **&lt;Clone&gt;$()**
  81. ```csharp
  82. public LLamaState <Clone>$()
  83. ```
  84. #### Returns
  85. [LLamaState](./llama.llamastate.md)<br>
  86. ### **Deconstruct(Queue`1&, Queue`1&, Byte[]&, Int32&)**
  87. ```csharp
  88. public void Deconstruct(Queue`1& EvalTokens, Queue`1& EvalLogits, Byte[]& State, Int32& Size)
  89. ```
  90. #### Parameters
  91. `EvalTokens` [Queue`1&](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1&)<br>
  92. `EvalLogits` [Queue`1&](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1&)<br>
  93. `State` [Byte[]&](https://docs.microsoft.com/en-us/dotnet/api/system.byte&)<br>
  94. `Size` [Int32&](https://docs.microsoft.com/en-us/dotnet/api/system.int32&)<br>