Skip to content
Merged
Show file tree
Hide file tree
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 @@ -23,7 +23,6 @@

import tvm
import tvm.testing
from tvm import te

dtype = tvm.testing.parameter("uint8", "int8", "uint16", "int16", "uint32", "int32", "float32")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import numpy as np

import tvm
from tvm import te
import tvm.testing
from tvm.script import tir as T

Expand Down
1 change: 0 additions & 1 deletion tests/python/arith/test_arith_domain_touched.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.
import tvm
from tvm import te
from tvm.script import tir as T


Expand Down
1 change: 0 additions & 1 deletion tests/python/codegen/test_target_codegen_llvm_vla.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import pytest

import tvm
from tvm import te
from tvm.script import tir as T
from tvm.target.codegen import llvm_version_major

Expand Down
1 change: 0 additions & 1 deletion tests/python/codegen/test_target_codegen_static_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.
import tvm
from tvm import te
from tvm.script import ir as I, tir as T
import ctypes
import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# under the License.
import tvm
import tvm.testing
from tvm import te
from tvm import tir, s_tir
from tvm.script import tir as T

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
# specific language governing permissions and limitations
# under the License.
import tvm
from tvm import te


def test_decorate_device():
x = te.var("x")
x = tvm.tir.Var("x", "int32")
mod = tvm.IRModule.from_expr(tvm.tir.PrimFunc([x], tvm.tir.Evaluate(x)))

stmt = tvm.s_tir.transform.DecorateDeviceScope()(mod)["main"].body
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
import tvm
from tvm import te, s_tir
from tvm import s_tir
from tvm.script import tir as T, ir as I
import numpy as np
import pytest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import pytest
import tvm
import tvm.testing
from tvm import te
from tvm.ir.module import IRModule
from tvm.script import tir as T
import numpy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import pytest
import tvm
import tvm.testing
from tvm import te, s_tir
from tvm import s_tir
from tvm.script import tir as T

# pylint: disable=no-member,invalid-name,unused-variable,unexpected-keyword-arg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
import tvm
from tvm import te, s_tir
from tvm import s_tir
from tvm.script import tir as T

# pylint: disable=no-self-argument
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import tvm
import tvm.testing
import tvm.s_tir
from tvm import te
from tvm.script import tir as T


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

import tvm
from tvm import te, s_tir
from tvm import s_tir
from tvm.script import tir as T
import sys
import pytest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import tvm
import tvm.testing
from tvm import te, s_tir
from tvm import s_tir
from tvm.topi.math import cast
from tvm.script import ir as I, tir as T

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import tvm
import tvm.testing
from tvm import te
from tvm.script import tir as T
from tvm import tir, s_tir
from tvm.s_tir.tensor_intrin.hexagon import VRMPY_u8u8i32_INTRIN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import tvm
import tvm.testing
from tvm import te, s_tir
from tvm import s_tir
from tvm.ir.module import IRModule
from tvm.script import tir as T
import numpy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.
import tvm
import tvm.testing
from tvm import te, s_tir
from tvm import s_tir
from tvm.script import tir as T


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import tvm
import tvm.testing
from tvm import te, s_tir
from tvm import s_tir
from tvm.script import tir as T


Expand Down
1 change: 0 additions & 1 deletion tests/python/testing/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# under the License.
import numpy as np
import tvm
from tvm import te
import tvm.testing


Expand Down
11 changes: 5 additions & 6 deletions tests/python/tir-transform/test_tir_transform_convert_ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,11 @@ def test_track_forward_declarations_in_attr_stmt():

# Generate the PrimFunc, which is already SSA
#
# This is constructed directly, rather than using TVMScript or
# the `tvm.tir.ir_builder`. This test case requires a
# `tir.AttrStmt` that references a variable, followed by the
# `tir.For` defining that variable. This is not expressible in
# either TVMScript or `tvm.tir.ir_builder`, as they only provide
# the loop iterator within the body of the loop.
# This is constructed directly, rather than using TVMScript.
# This test case requires a `tir.AttrStmt` that references a
# variable, followed by the `tir.For` defining that variable.
# This is not expressible in TVMScript, as it only provides the
# loop iterator within the body of the loop.
i0_outer_outer = tir.Var("i0_outer_outer", "int32")
i0_outer_inner = tir.Var("i0_outer_inner", "int32")
i0_inner = tir.Var("i0_inner", "int32")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# under the License.
import tvm
import tvm.testing
from tvm import te
from tvm.script import ir as I, tir as T


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import numpy as np
import tvm
import tvm.testing
from tvm import te, tir
from tvm import tir
from tvm.script import tir as T, ir as I


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.
import tvm
from tvm import te
from tvm.script import tir as T
from tvm.tir import const
import tvm.testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# under the License.
import tvm
import tvm.testing
from tvm import te
from tvm.script import ir as I
from tvm.script import tir as T

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import tvm
import tvm.testing
from tvm import te
from tvm.script import tir as T, ir as I


Expand Down
Loading