This is an automated email from the ASF dual-hosted git repository.
mehrdadh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new f53ee0cecf [Hexagon] Fix missing pytest import (#12565)
f53ee0cecf is described below
commit f53ee0cecf96adad71db92d2a0c488ca2dd6bee7
Author: Mehrdad Hessar <[email protected]>
AuthorDate: Wed Aug 24 11:44:59 2022 -0700
[Hexagon] Fix missing pytest import (#12565)
* Add pytest
* lint
---
tests/python/contrib/test_hexagon/topi/test_cast_slice.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/python/contrib/test_hexagon/topi/test_cast_slice.py
b/tests/python/contrib/test_hexagon/topi/test_cast_slice.py
index 6569ce36bb..1b235a4daf 100644
--- a/tests/python/contrib/test_hexagon/topi/test_cast_slice.py
+++ b/tests/python/contrib/test_hexagon/topi/test_cast_slice.py
@@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.
""" Tests for Hexagon slice cast ops """
+import pytest
import numpy as np
import tvm
@@ -75,6 +76,7 @@ class TestCastF16F32Slice2d:
"""
if hexagon_session._launcher._serial_number != "simulator":
pytest.skip(msg="Due to
https://github.com/apache/tvm/issues/11957")
+
target_hexagon = tvm.target.hexagon("v69")
target = tvm.target.Target(target_hexagon, host=target_hexagon)
cast_input = te.placeholder(input_shape, name="A", dtype=dtype)