LLamaSharp/docs/xmldocs/llama.llamastate.md

3.5 KiB

LLamaState

Namespace: LLama

public class LLamaState : System.IEquatable`1[[LLama.LLamaState, LLamaSharp, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectLLamaState
Implements IEquatable<LLamaState>

Properties

EvalTokens

public Queue<int> EvalTokens { get; set; }

Property Value

Queue<Int32>

EvalLogits

public Queue<Single[]> EvalLogits { get; set; }

Property Value

Queue<Single[]>

State

public Byte[] State { get; set; }

Property Value

Byte[]

Size

public int Size { get; set; }

Property Value

Int32

Constructors

LLamaState(Queue<Int32>, Queue<Single[]>, Byte[], Int32)

public LLamaState(Queue<int> EvalTokens, Queue<Single[]> EvalLogits, Byte[] State, int Size)

Parameters

EvalTokens Queue<Int32>

EvalLogits Queue<Single[]>

State Byte[]

Size Int32

Methods

ToString()

public string ToString()

Returns

String

PrintMembers(StringBuilder)

protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

public int GetHashCode()

Returns

Int32

Equals(Object)

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(LLamaState)

public bool Equals(LLamaState other)

Parameters

other LLamaState

Returns

Boolean

<Clone>$()

public LLamaState <Clone>$()

Returns

LLamaState

Deconstruct(Queue1&, Queue1&, Byte[]&, Int32&)

public void Deconstruct(Queue`1& EvalTokens, Queue`1& EvalLogits, Byte[]& State, Int32& Size)

Parameters

EvalTokens Queue`1&

EvalLogits Queue`1&

State Byte[]&

Size Int32&