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
Cast(Tensor, ITensorData, ITensorData)
Declaration
void Cast(Tensor x, ITensorData newBuffer, ITensorData oldBuffer)
Parameters
Release(Tensor, Boolean)
Declaration
void Release(Tensor x, bool calledFromTensorDispose)
Parameters
Repin(Tensor, ITensorData, ITensorData, Boolean)
Declaration
void Repin(Tensor x, ITensorData newBuffer, ITensorData oldBuffer, bool disposeUnpinnedHint)
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 |
|