Interface IVars
Interfaces for variables
Inherited Members
Namespace: Unity.Barracuda
Assembly: solution.dll
Syntax
public interface IVars : IDisposable
Methods
DisposeAfterLayer(Layer)
Dispose storage that can be deleted after layer
Declaration
void DisposeAfterLayer(Layer forLayer)
Parameters
Type | Name | Description |
---|---|---|
Layer | forLayer | layer |
GatherInputs(Layer)
Gather layer inputs
Declaration
Tensor[] GatherInputs(Layer forLayer)
Parameters
Type | Name | Description |
---|---|---|
Layer | forLayer | layer |
Returns
Type | Description |
---|---|
Tensor[] | all input tensors |
GetAllocator()
Get allocator
Declaration
ITensorAllocator GetAllocator()
Returns
Type | Description |
---|---|
ITensor |
current |
PeekConstants(string)
Peek constants
Declaration
Tensor[] PeekConstants(string layerName)
Parameters
Type | Name | Description |
---|---|---|
string | layerName | layer name |
Returns
Type | Description |
---|---|
Tensor[] | Tensor array |
PeekOutput(string)
Peek output
Declaration
Tensor PeekOutput(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | name |
Returns
Type | Description |
---|---|
Tensor | Tensor |
PrepareStorage(Layer)
Prepare storage for layer
Declaration
void PrepareStorage(Layer forLayer)
Parameters
Type | Name | Description |
---|---|---|
Layer | forLayer | layer |
PrepareStorage(Model, IOps, IDictionary<string, TensorShape>, bool, DataType)
Prepare storage
Declaration
void PrepareStorage(Model model, IOps optionalOpsToPrepareTensors = null, IDictionary<string, TensorShape> optionalInputShapes = null, bool takeoverWeights = false, DataType dataType = DataType.Float)
Parameters
Type | Name | Description |
---|---|---|
Model | model | model |
IOps | optionalOpsToPrepareTensors |
|
IDictionary<string, Tensor |
optionalInputShapes | input shapes dictionary |
bool | takeoverWeights | takeoverWeights flag |
Data |
dataType | expect activation data type |
SetInput(string, Tensor)
Set input
Declaration
void SetInput(string name, Tensor x)
Parameters
Store(Layer, Tensor)
Store result
for layer
Declaration
void Store(Layer fromLayer, Tensor result)