Provides methods to access the result obtained with the compute() method of the forward softmax cross-entropy layer.
More...
| def allocate_{Float64|Float32} |
( |
|
self, |
|
|
|
input, |
|
|
|
parameter, |
|
|
|
method |
|
) |
| |
Allocates memory to store the result of the forward softmax cross-entropy layer
- Parameters
-
| input | Pointer to an object containing the input data |
| method | Computation method for the layer |
| parameter | Parameter of the forward softmax cross-entropy layer |
- Returns
- Status of computations
- Full Names
allocate_Float64 is for float64
allocate_Float32 is for float32
| def check |
( |
|
self, |
|
|
|
input, |
|
|
|
par, |
|
|
|
method |
|
) |
| |
Checks the result of the forward softmax cross-entropy layer
- Parameters
-
| input | Input object for the layer |
| par | Parameter of the layer |
| method | Computation method |
- Returns
- Status of computations
| def getLayerData |
( |
|
self, |
|
|
|
id |
|
) |
| |
Returns the result of the forward softmax cross-entropy layer
- Parameters
-
| id | Identifier of the result |
- Returns
- Result that corresponds to the given identifier
| def getSerializationTag |
( |
|
self | ) |
|
getSerializationTag(Result self) -> int
| def getValueSize |
( |
|
self, |
|
|
|
inputSize, |
|
|
|
par, |
|
|
|
method |
|
) |
| |
Returns dimensions of value tensor
- Returns
- Dimensions of value tensor
| def setLayerData |
( |
|
self, |
|
|
|
id, |
|
|
|
value |
|
) |
| |
Sets the result of the forward softmax cross-entropy layer
- Parameters
-
| id | Identifier of the result |
| value | Result |
| def setResultForBackward |
( |
|
self, |
|
|
|
input |
|
) |
| |
Sets the result that is used in backward softmax cross-entropy layer
- Parameters
-
| input | Pointer to an object containing the input data |
- Returns
- Status of computations
The documentation for this class was generated from the following file:
- loss/softmax_cross/forward.py