MetalGpuBuffer
Models & Types · AiDotNet.Tensors.Engines.DirectGpu.Metal
No summary documentation available yet.
Implements: IGpuBuffer
Properties
| Property | Summary |
|---|---|
IntPtr Contents { get; } |
|
IntPtr Handle { get; } |
|
MTLResourceOptions StorageMode { get; } |
|
bool IsDisposed { get; } |
|
int Size { get; } |
|
long ByteOffset { get; } |
|
long SizeInBytes { get; } |
Methods
| Method | Summary |
|---|---|
ReadOnlySpan<float> AsReadOnlySpan() |
|
Span<float> AsSpan() |
|
string ToString() |
|
void Clear() |
|
void CopyBytesFrom(byte[] source, int offsetInBytes, int count) |
|
void CopyBytesTo(byte[] destination, int offsetInBytes, int count) |
|
void CopyFrom(float[] source, int offset, int count) |
|
void CopyFromPointer(IntPtr source, int sizeInBytes, int offsetInBytes) |
|
void CopyTo(float[] destination, int offset, int count) |
|
void Dispose() |
|
void Fill(float value) |
|
void NotifyModified(int offset, int count) |