Provides methods to access the result obtained with the compute() method of the layer algorithm.
More...
| def allocate_{Float64|Float32} |
( |
|
self, |
|
|
|
input, |
|
|
|
par, |
|
|
|
method |
|
) |
| |
Allocates memory to store the results of layer
- Parameters
-
| input | Pointer to the input structure |
| par | Pointer to the parameter structure |
| method | Computation method of the algorithm |
- Returns
- Status of computations
- Full Names
allocate_Float64 is for float64
allocate_Float32 is for float32
| def check |
( |
|
self, |
|
|
|
input, |
|
|
|
parameter, |
|
|
|
method |
|
) |
| |
Checks the result object for the layer algorithm
- Parameters
-
| input | Input of the algorithm |
| parameter | Parameter of algorithm |
| method | Computation method of the algorithm |
- Returns
- Status of computations
Returns the layout of the result object for the layer algorithm
- Returns
- Layout of the result object for the layer algorithm
| def getResult |
( |
|
self, |
|
|
|
id |
|
) |
| |
Returns result of the layer algorithm
- Parameters
-
| id | Identifier of the result |
- Returns
- Result that corresponds to the given identifier
| def getResultLayerData |
( |
|
self, |
|
|
|
id |
|
) |
| |
Returns result of the layer algorithm
- Parameters
-
| id | Identifier of the result |
- Returns
- Result that corresponds to the given identifier
| def getSerializationTag |
( |
|
self | ) |
|
| def getValue |
( |
|
self, |
|
|
|
index |
|
) |
| |
Returns resulting value of the layer algorithm
- Parameters
-
| index | Index of the tensor with value |
- Returns
- Resulting value that corresponds to the given index
| def getValueCollectionSize |
( |
|
self, |
|
|
|
inputSize, |
|
|
|
par, |
|
|
|
method |
|
) |
| |
Returns collection of dimensions of layer output
- Parameters
-
| inputSize | Collection of input tensor dimensions |
| par | Parameters of the algorithm |
| method | Method of the algorithm |
- Returns
- Collection of dimensions of layer output
| def getValueSize |
( |
|
self, |
|
|
|
args |
|
) |
| |
- Variant 1
Returns collection of dimensions of layer output
- Parameters
-
| inputSize | Collection of input tensor dimensions |
| par | Parameters of the algorithm |
| method | Method of the algorithm |
- Returns
- Collection of dimensions of layer output
- Variant 2
Returns collection of dimensions of layer output
- Parameters
-
| inputSize | Collection of input tensors dimensions |
| par | Parameters of the algorithm |
| method | Method of the algorithm |
- Returns
- Collection of dimensions of layer output
| def setResult |
( |
|
self, |
|
|
|
id, |
|
|
|
ptr |
|
) |
| |
Sets the result of the layer algorithm
- Parameters
-
| id | Identifier of the result |
| ptr | Pointer to the result |
| def setResultForBackward |
( |
|
self, |
|
|
|
input |
|
) |
| |
Sets the result that is used in backward layer
- Parameters
-
| input | Pointer to an object containing the input data |
- Returns
- Status of computations
| def setResultLayerData |
( |
|
self, |
|
|
|
id, |
|
|
|
ptr |
|
) |
| |
Sets the result of the layer algorithm
- Parameters
-
| id | Identifier of the result |
| ptr | Pointer to the result |
The documentation for this class was generated from the following file: