Skip to content

Commit

Permalink
Update test_identity_optimizer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalda committed Mar 30, 2022
1 parent 925178e commit 88537c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/python/contrib/test_ethosu/test_identity_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from tvm.relay.backend.contrib.ethosu.codegen import IdentityOptimizer

from . import infra
from .test_codegen import _compare_tvm_with_tflite


def _optimize(func, optimize=True):
Expand Down Expand Up @@ -323,7 +322,7 @@ def model(x, y):
z = tf.reshape(z, (1, 1, 25, 8))
return z

_compare_tvm_with_tflite(model, ifm_shapes, "ethos-u55-256")
infra.compare_tvm_with_tflite(model, ifm_shapes, "ethos-u55-256")


def test_multi_output_identity_has_same_output():
Expand All @@ -341,7 +340,7 @@ def model(x):
y = tf.concat(outputs, axis=0)
return y

_compare_tvm_with_tflite(model, [ifm_shape], "ethos-u55-256")
infra.compare_tvm_with_tflite(model, [ifm_shape], "ethos-u55-256")


def test_multiple_transform_ops_same_output():
Expand All @@ -356,4 +355,4 @@ def model(x):
x = tf.reshape(x, (12,))
return x

_compare_tvm_with_tflite(model, [ifm_shape], "ethos-u55-256")
infra.compare_tvm_with_tflite(model, [ifm_shape], "ethos-u55-256")

0 comments on commit 88537c5

Please sign in to comment.