MLECO-2488: added model optimization options and updated OptimizerOptions constructor.
Signed-off-by: alexander <alexander.efremov@arm.com>
Change-Id: Ic2ad6a46c3830f2526ba8b20ca0db0780be4b9a2
diff --git a/python/pyarmnn/test/test_runtime.py b/python/pyarmnn/test/test_runtime.py
index 295c870..fbdd804 100644
--- a/python/pyarmnn/test/test_runtime.py
+++ b/python/pyarmnn/test/test_runtime.py
@@ -97,6 +97,7 @@
assert not opt_network.thisown
+
def test_load_network(random_runtime):
preferred_backends = random_runtime[0]
network = random_runtime[1]
@@ -109,6 +110,7 @@
assert "" == messages
assert net_id == 0
+
def test_create_runtime_with_external_profiling_enabled():
options = ann.CreationOptions()
@@ -125,6 +127,7 @@
assert runtime is not None
+
def test_create_runtime_with_external_profiling_enabled_invalid_options():
options = ann.CreationOptions()
@@ -157,6 +160,7 @@
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 @@
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]