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
2 changes: 1 addition & 1 deletion python/tvm/relax/backend/dispatch_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def visit_call_(self, call: relax.Call) -> relax.Expr:
return super().visit_call_(call)

if call.op.name == "relax.multinomial_from_uniform":
from tvm.relax.backend_tir import ( # pylint: disable=import-outside-toplevel
from tvm.relax.backend.gpu_generic import ( # pylint: disable=import-outside-toplevel
generic_get_sample_index,
gpu_multinomial_from_uniform,
)
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/relax/backend/dispatch_sort_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def visit_call_(self, call: relax.Call) -> relax.Expr:
and call.op.name == "relax.cumsum"
and call.attrs.exclusive == 0
):
from tvm.relax.backend_tir import ( # pylint: disable=import-outside-toplevel
from tvm.relax.backend.gpu_generic import ( # pylint: disable=import-outside-toplevel
gpu_2d_continuous_cumsum,
)

Expand Down
4 changes: 3 additions & 1 deletion python/tvm/relax/backend/gpu_generic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
# specific language governing permissions and limitations
# under the License.
"""The Relax Metal backend compilation pipeline and other passes."""
from .cumsum import gpu_2d_continuous_cumsum
from .pipeline import (
dataflow_lower_passes,
finalize_passes,
get_default_pipeline,
legalize_passes,
dataflow_lower_passes,
library_dispatch_passes,
)
from .sampling import generic_get_sample_index, gpu_multinomial_from_uniform
22 changes: 0 additions & 22 deletions python/tvm/relax/backend_tir/__init__.py

This file was deleted.

20 changes: 0 additions & 20 deletions python/tvm/relax/backend_tir/contrib/__init__.py

This file was deleted.

Loading
Loading