RelaxedOneHotCategoricalInt4Distribution

Models & Types · AiDotNet.Tensors.Distributions

No summary documentation available yet.

Inheritance: DistributionBase → RelaxedOneHotCategoricalInt4Distribution

Constructors

Constructor Summary
RelaxedOneHotCategoricalInt4Distribution(float[] logits, float[] temperature, int k, int groupSize)

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 GroupSize { get; }
int K { get; }

Methods

Method Summary
QuantisedCategoricalSample SampleInt4(Random rng)
QuantisedCategoricalSample SampleInt4(ReadOnlySpan<float> logits, Random rng)
Tensor<float> RSampleTape(Tensor<float> logits, Random rng)
float[] Dequantize(QuantisedCategoricalSample sample)
float[] Entropy()
float[] LogProb(float[] value)
float[] RSample(Random rng)
float[] Sample(Random rng)