SparseEmbeddingGradient<T>
Structs · AiDotNet.Tensors.Engines.Autodiff
No summary documentation available yet.
Inheritance: ValueType → SparseEmbeddingGradient<T>
Constructors
| Constructor | Summary |
|---|---|
SparseEmbeddingGradient(Tensor<T> values, Tensor<long> indices, int vocabSize, int embeddingDim) |
Properties
| Property | Summary |
|---|---|
Tensor<T> Values { get; } |
|
Tensor<long> Indices { get; } |
|
bool IsEmpty { get; } |
|
int EmbeddingDim { get; } |
|
int NumIndices { get; } |
|
int VocabSize { get; } |
Methods
| Method | Summary |
|---|---|
SparseEmbeddingGradient<T> Build(Tensor<T> gradOutput, Tensor<TIndex> indices, int vocabSize, int embeddingDim) |
|
Tensor<T> ToDense(IEngine engine) |