src.tests.features_upsampling_layer_test
Classes
- class src.tests.features_upsampling_layer_test.FeaturesUpsamplingLayerTest
- Author:
Alberto M. Esmoris Pena
Features upsampling layer test that checks the operations of a features upsampling layer yield the expected results.
- __init__()
Basic configuration for any VL3D test.
- Parameters:
name (str) – Test name
- run()
Run features upsampling layer test.
- Returns:
True if
FeaturesUpsamplingLayerworks as expected for the test cases, False otherwise.- Return type:
bool
- validate_mean_upsampling(inputs, nneighs, ful_mean_out)
Check whether the mean-based upsampling layer yielded the expected output (True) or not (False).
- Parameters:
inputs – The inputs to the layer.
nneighs – The number of encoding neighbors.
ful_mean_out – The output generated by the layer.
- Returns:
True if the output is okay, False otherwise.
- validate_max_upsampling(inputs, nneighs, ful_max_out)
Check whether the max-based upsampling layer yielded the expected output (True) or not (False).
- Parameters:
inputs – The inputs to the layer.
nneighs – The number of encoding neighbors.
ful_max_out – The output generated by the layer.
- Returns:
True if the output is okay, False otherwise.
- validate_gaussian_upsampling(inputs, nneighs, ful_gauss_out)
Check whether the gaussian-based upsampling layer yielded the expected output (True) or not (False).
- Parameters:
inputs – The inputs to the layer.
nneighs – The number of encoding neighbors.
ful_gaussian_out – The output generated by the layer.
- Returns:
True if the output is okay, False otherwise.
- validate_exponential_upsampling(inputs, nneighs, ful_exp_out)
Check whether the exponential-based upsampling layer yielded the expected output (True) or not (False).
- Parameters:
inputs – The inputs to the layer.
nneighs – The number of encoding neighbors.
ful_exp_out – The output generated by the layer.
- Returns:
True if the output is okay, False otherwise.
- validate_nearest_upsampling(inputs, nneighs, ful_nearest_out)
Check whether the nearest neighbor upsampling layer yielded the expected output (True) or not (False).
- Parameters:
inputs – The inputs to the layer.
nneighs – The number of encoding neighbors (IGNORED).
ful_nearest_out – The output generated by the layer.
- Returns:
True if the output is okay, False otherwise.