Class TensorOperatorNewAllocator
Inheritance
TensorOperatorNewAllocator
Syntax
public class TensorOperatorNewAllocator : ITensorAllocator, IDisposable
Constructors
TensorOperatorNewAllocator()
Declaration
public TensorOperatorNewAllocator()
Properties
busyBytes
Declaration
public long busyBytes { get; }
Property Value
freeBytes
Declaration
public long freeBytes { get; }
Property Value
totalBytes
Declaration
public long totalBytes { get; }
Property Value
Methods
Alloc(TensorShape)
Declaration
public virtual Tensor Alloc(TensorShape shape)
Parameters
Returns
Implements
Alloc(TensorShape, ITensorData)
Declaration
public virtual Tensor Alloc(TensorShape shape, ITensorData buffer)
Parameters
Returns
Implements
Cast(Tensor, ITensorData, ITensorData)
Declaration
public virtual void Cast(Tensor tensor, ITensorData newBuffer, ITensorData oldBuffer)
Parameters
Implements
Dispose()
Declaration
public virtual void Dispose()
Finalize()
Declaration
protected void Finalize()
Release(Tensor, Boolean)
Declaration
public virtual void Release(Tensor tensor, bool calledFromTensorDispose)
Parameters
Type |
Name |
Description |
Tensor |
tensor |
|
Boolean |
calledFromTensorDispose |
|
Implements
Repin(Tensor, ITensorData, ITensorData, Boolean)
Declaration
public virtual void Repin(Tensor tensor, ITensorData newBuffer, ITensorData oldBuffer, bool disposeUnpinnedHint)
Parameters
Implements
Reset(Boolean)
Declaration
public virtual void Reset(bool keepCachedMemory)
Parameters
Type |
Name |
Description |
Boolean |
keepCachedMemory |
|
Implements
ToString()
Declaration
public override string ToString()
Returns
Overrides
WaiveOwnership(Tensor)
Declaration
public virtual void WaiveOwnership(Tensor tensor)
Parameters
Type |
Name |
Description |
Tensor |
tensor |
|
Implements