src.tests.vl3dpp_dl_hierarchical_fps_pre_proc_test
Classes
- class src.tests.vl3dpp_dl_hierarchical_fps_pre_proc_test.VL3DPPDLHierarchicalFPSPreProcTest
- Author:
Alberto M. Esmoris Pena
Deep learning pre-processor test that checks the C++ implementation of the hierarchical FPS pre-processors for deep learning models.
- __init__()
Basic configuration for any VL3D test.
- Parameters:
name (str) – Test name
- run()
Run C++ deep learning hierarchical FPS pre-processors test.
- Returns:
True if the C++ pre-processors work as expected for the test cases, False otherwise.
- Return type:
bool
- testDLPreProc(dlpre, dlprepp, inputs, eps=None)
Check that the C++ deep learning pre-processor works as the python reference pre-processor.
- Parameters:
dlpre – The object representing the Python-side pre-processor.
dlprepp – The object representing the C++-side pre-processor.
inputs (dict) – The inputs for the pre-processor.
eps (float or None) – The decimal tolerance threshold. If not given, it will be taken from self.eps. It must be given as self.unit_eps when doing tests on receptive fields transformed to the unit sphere.
- Returns:
True if the C++ pre-processor matches the results of the Python pre-processor, False otherwise.
- Return type:
bool