Class GenericVarsWithPreallocation
Inheritance
GenericVarsWithPreallocation
Syntax
public class GenericVarsWithPreallocation : GenericVarsWithReuse, IVars, ITensorAllocator, IDisposable
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 x, ITensorData newBuffer, ITensorData oldBuffer)
Parameters
Implements
GetAllocator()
Declaration
public override ITensorAllocator GetAllocator()
Returns
Overrides
IsTensorOwnedByInternalAllocator(Tensor)
Declaration
protected override bool IsTensorOwnedByInternalAllocator(Tensor tensor)
Parameters
Type |
Name |
Description |
Tensor |
tensor |
|
Returns
Overrides
PrepareStorage(Model, IOps, IDictionary<String, TensorShape>)
Declaration
public override void PrepareStorage(Model model, IOps ops, IDictionary<string, TensorShape> inputShapes)
Parameters
Overrides
Release(Tensor, Boolean)
Declaration
public virtual void Release(Tensor x, bool calledFromTensorDispose)
Parameters
Implements
Repin(Tensor, ITensorData, ITensorData, Boolean)
Declaration
public virtual void Repin(Tensor x, 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 x)
Parameters
Type |
Name |
Description |
Tensor |
x |
|
Implements