Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[microNPU] Fix skip tests when Vela is not present #14587

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
# specific language governing permissions and limitations
# under the License.
import pytest

pytest.importorskip("ethosu.vela")

import numpy as np

import tvm
from tvm import relay
from tests.python.contrib.test_ethosu.infra import get_tflite_graph
from tvm.relay.op.contrib.ethosu import partition_for_ethosu
Expand All @@ -28,7 +32,6 @@ def test_operations_distribution_ethos():

tflite = pytest.importorskip("tflite")
tensorflow = pytest.importorskip("tensorflow")
pytest.importorskip("ethosu.vela")

import tensorflow as tf

Expand Down Expand Up @@ -100,7 +103,6 @@ def test_operations_distribution_generic():

tflite = pytest.importorskip("tflite")
tensorflow = pytest.importorskip("tensorflow")
pytest.importorskip("ethosu.vela")

import tensorflow as tf

Expand Down Expand Up @@ -170,4 +172,4 @@ def simple_net(x):


if __name__ == "__main__":
test_operations_distribution()
tvm.testing.main()