diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/pyarmnn/test/test_profiling_utilities.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/python/pyarmnn/test/test_profiling_utilities.py b/python/pyarmnn/test/test_profiling_utilities.py index b7b91b5613..9fb7fd8b3d 100644 --- a/python/pyarmnn/test/test_profiling_utilities.py +++ b/python/pyarmnn/test/test_profiling_utilities.py @@ -24,7 +24,9 @@ def mock_profiler(shared_data_folder): def test_inference_exec(mock_profiler): - profiling_data_obj = ann.get_profiling_data(mock_profiler) + preferred_backends = [ann.BackendId('CpuRef'), ann.BackendId('CpuAcc'), + ann.BackendId('GpuAcc'), ann.BackendId('EthosNAcc')] + profiling_data_obj = ann.get_profiling_data(mock_profiler, preferred_backends) assert (len(profiling_data_obj.inference_data) > 0) assert (len(profiling_data_obj.per_workload_execution_data) > 0) @@ -60,7 +62,9 @@ def test_inference_exec(mock_profiler): 'EthosNSomeMock4dWorkload_Execute_#8') ]) def test_profiler_workloads(mock_profiler, exec_times, unit, backend, workload): - profiling_data_obj = ann.get_profiling_data(mock_profiler) + preferred_backends = [ann.BackendId('CpuRef'), ann.BackendId('CpuAcc'), + ann.BackendId('GpuAcc'), ann.BackendId('EthosNAcc')] + profiling_data_obj = ann.get_profiling_data(mock_profiler, preferred_backends) work_load_exec = profiling_data_obj.per_workload_execution_data[workload] assert work_load_exec["execution_time"] == exec_times |