src.tests.hourglass_layer_test
Classes
- class src.tests.hourglass_layer_test.HourglassLayerTest
- Author:
Alberto M. Esmoris PEna
Hourglass layer test that checks the operations of a Hourglass layer yield the expected results.
- __init__()
Basic configuration for any VL3D test.
- Parameters:
name (str) – Test name
- run()
Run Hourglass layer test.
- Returns:
True if
HourglassLayerworks as expected for the test cases, False otherwise.- Return type:
bool
- validate_hourglass(F, mid_features, out_features, hl, hl_out)
Check whether the
HourglassLayeryielded the expected output (True) or not (False). It also checks that the regularization computation is correct.- Parameters:
f – The inputs to the layer.
mid_features – The number of features in the internal representation.
out_features – The number of output features.
hl (
HourglassLayer) – The layerhl_out – The output of the layer.
- Returns:
True if the output is okay, False otherwise.