Interface ITensorAllocator
Interfaces for tensor allocator
Syntax
public interface ITensorAllocator : IDisposable
Methods
Alloc(TensorShape)
Declaration
Tensor Alloc(TensorShape shape)
Parameters
Returns
Alloc(TensorShape, ITensorData)
Declaration
Tensor Alloc(TensorShape shape, ITensorData buffer)
Parameters
Returns
MoveToDevice(Tensor, ITensorData, ITensorData, Boolean)
Declaration
void MoveToDevice(Tensor x, ITensorData newBuffer, ITensorData oldBuffer, bool disposeDetachedBufferHint)
Parameters
Release(Tensor, Boolean)
Declaration
void Release(Tensor x, bool calledFromTensorDispose)
Parameters
Reset(Boolean)
Declaration
void Reset(bool keepCachedMemory)
Parameters
Type |
Name |
Description |
Boolean |
keepCachedMemory |
|
WaiveOwnership(Tensor)
Declaration
void WaiveOwnership(Tensor x)
Parameters
Type |
Name |
Description |
Tensor |
x |
|