helpers
check_deployment_model(export_type)
¶
Check that the runtime model is present and valid.
Parameters:
-
export_type
(
str
) –The type of the exported model.
Source code in quadra/utils/tests/helpers.py
36 37 38 39 40 41 42 43 44 45 |
|
execute_quadra_experiment(overrides, experiment_path)
¶
Execute quadra experiment.
Source code in quadra/utils/tests/helpers.py
21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
get_quadra_test_device()
¶
Get the device to use for the tests. If the QUADRA_TEST_DEVICE environment variable is set, it is used.
Source code in quadra/utils/tests/helpers.py
48 49 50 |
|
setup_trainer_for_lightning()
¶
Setup trainer for lightning depending on the device. If cuda is used, the device index is also set. If cpu is used, the trainer is set to lightning_cpu.
Returns:
Source code in quadra/utils/tests/helpers.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|