Skip to content

Commit

Permalink
Add further test guards
Browse files Browse the repository at this point in the history
Change-Id: Ib1633341ed84e83c29c4220dd9bc4a7b6d17a5d0
  • Loading branch information
mbaret committed Jan 5, 2022
1 parent 9785c8c commit 7a0cfb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/python/contrib/test_ethosu/cascader/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import pytest

pytest.importorskip("ethosu.vela")

import tvm
from tvm import relay
from tvm.relay.testing import run_opt_pass
Expand All @@ -22,8 +26,6 @@
from .infra import create_te_graph
from ..infra import make_ethosu_conv2d

import pytest


def make_TwoConv2DTE():
def _get_func():
Expand Down
2 changes: 2 additions & 0 deletions tests/python/contrib/test_ethosu/cascader/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
# under the License.
import pytest

pytest.importorskip("ethosu.vela")

import tvm.contrib.ethosu.cascader as cs


Expand Down

0 comments on commit 7a0cfb9

Please sign in to comment.