LLamaSharp/docs/xmldocs/llama.native.llamatokendata.md

52 lines
879 B
Markdown
Raw Permalink Normal View History

2023-06-20 02:38:57 +08:00
# LLamaTokenData
Namespace: LLama.Native
```csharp
public struct LLamaTokenData
```
Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ValueType](https://docs.microsoft.com/en-us/dotnet/api/system.valuetype) → [LLamaTokenData](./llama.native.llamatokendata.md)
## Fields
### **id**
token id
```csharp
public int id;
```
### **logit**
log-odds of the token
```csharp
public float logit;
```
### **p**
probability of the token
```csharp
public float p;
```
## Constructors
### **LLamaTokenData(Int32, Single, Single)**
```csharp
LLamaTokenData(int id, float logit, float p)
```
#### Parameters
`id` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
`logit` [Single](https://docs.microsoft.com/en-us/dotnet/api/system.single)<br>
`p` [Single](https://docs.microsoft.com/en-us/dotnet/api/system.single)<br>