ParameterBuffer<T>
Models & Types · AiDotNet.Tensors.Engines.Autodiff
No summary documentation available yet.
Constructors
| Constructor |
Summary |
ParameterBuffer(IReadOnlyList<ParameterLayout> layouts) |
|
ParameterBuffer(IReadOnlyList<int[]> parameterShapes) |
|
Properties
| Property |
Summary |
int Count { get; } |
|
int TotalSize { get; } |
|
Methods
| Method |
Summary |
ReadOnlySpan<T> GetSparseValuesReadOnlySpan(int index) |
|
Span<T> GetSparseValuesSpan(int index) |
|
SparsityLayout GetSparseLayout(int index) |
|
Tensor<T> CreateView(int index) |
|
Tensor<T>[] CreateAllViews() |
|
Vector<T> AsVector() |
|
Vector<T> CreateGradientVector() |
|
Vector<T> FlattenGradients(IReadOnlyList<Tensor<T>> parameters, Dictionary<Tensor<T>, Tensor<T>> gradients) |
|
bool IsSparse(int index) |
|
int GetOffset(int index) |
|
int[] GetShape(int index) |
|
void CopyFrom(IReadOnlyList<Tensor<T>> parameters) |
|
void CopyFrom(Vector<T> source) |
|
void RebuildSparsePattern(int index, SparsityLayout newLayout, ReadOnlySpan<T> newValues) |
|
void ResizeSparseLeaf(int index, SparsityLayout newLayout, ReadOnlySpan<T> newValues) |
|