This class implements a layer that calculates a loss function equal to the Euclidean distance between the classes from the network response and the objects belonging to the correct classes.
The layer has no settings.
The layer has no trainable parameters.
The layer may have 2 to 3 inputs:
- The network output for which you are calculating the loss function. It contains
BatchLength * BatchWidth * ListSize
objects, each ofHeight * Width * Depth * Channels
size. - A blob of the same size as the first input, containing the correct class objects. The loss function will calculate the Euclidean distance between the first and the second input.
- [Optional] The objects' weights. This blob should have the same dimensions as the first input.
This layer has no output.
float GetLastLoss() const;
Use this method to get the value of the loss function calculated on the network's last run.