RelaxedOneHotCategoricalFp4Distribution
Models & Types · AiDotNet.Tensors.Distributions
No summary documentation available yet.
Inheritance: DistributionBase → RelaxedOneHotCategoricalFp4Distribution
Constructors
| Constructor | Summary |
|---|---|
RelaxedOneHotCategoricalFp4Distribution(float[] logits, float[] temperature, int k) |
Properties
| Property | Summary |
|---|---|
IConstraint Support { get; } |
|
bool HasRSample { get; } |
|
float[] Logits { get; } |
|
float[] Mean { get; } |
|
float[] Temperature { get; } |
|
float[] Variance { get; } |
|
int BatchSize { get; } |
|
int EventSize { get; } |
|
int K { get; } |
Methods
| Method | Summary |
|---|---|
Tensor<float> RSampleTape(Tensor<float> logits, Random rng) |
|
byte[] SampleFp4(Random rng) |
|
byte[] SampleFp4(ReadOnlySpan<float> logits, Random rng) |
|
float[] Dequantize(byte[] packed) |
|
float[] Entropy() |
|
float[] LogProb(float[] value) |
|
float[] RSample(Random rng) |
|
float[] Sample(Random rng) |