diff options
Diffstat (limited to 'python/pyarmnn/test/test_runtime.py')
-rw-r--r-- | python/pyarmnn/test/test_runtime.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/pyarmnn/test/test_runtime.py b/python/pyarmnn/test/test_runtime.py index 295c870370..fbdd8044ce 100644 --- a/python/pyarmnn/test/test_runtime.py +++ b/python/pyarmnn/test/test_runtime.py @@ -97,6 +97,7 @@ def test_python_disowns_network(random_runtime): assert not opt_network.thisown + def test_load_network(random_runtime): preferred_backends = random_runtime[0] network = random_runtime[1] @@ -109,6 +110,7 @@ def test_load_network(random_runtime): assert "" == messages assert net_id == 0 + def test_create_runtime_with_external_profiling_enabled(): options = ann.CreationOptions() @@ -125,6 +127,7 @@ def test_create_runtime_with_external_profiling_enabled(): assert runtime is not None + def test_create_runtime_with_external_profiling_enabled_invalid_options(): options = ann.CreationOptions() @@ -157,6 +160,7 @@ def test_load_network_properties_provided(random_runtime): assert "" == messages assert net_id == 0 + def test_network_properties_constructor(random_runtime): preferred_backends = random_runtime[0] network = random_runtime[1] @@ -178,10 +182,12 @@ def test_network_properties_constructor(random_runtime): assert "" == messages assert net_id == 0 + def test_network_properties_deprecated_constructor(): with pytest.warns(DeprecationWarning): warnings.warn("Deprecated: Use constructor with MemorySource argument instead.", DeprecationWarning) + def test_unload_network_fails_for_invalid_net_id(random_runtime): preferred_backends = random_runtime[0] network = random_runtime[1] |