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: 0 additions & 2 deletions python/tvm/script/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@
"""TVM Script APIs of TVM Python Package"""
from .parser import ir, ir_module
from .parser import parse as from_source
from .parser import tir
from .parser import relax
6 changes: 2 additions & 4 deletions python/tvm/script/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the Licens.
# under the License.
"""The parser"""
from . import _core, ir, tir, relax
from . import _core, ir
from ._core import parse
from .ir import ir_module
from .tir import prim_func
from .relax import function
2 changes: 1 addition & 1 deletion python/tvm/script/parser/tir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
else:
from .entry import prim_func

__all__ = _tir.__all__ + ["Buffer", "Ptr", "prim_func"]
__all__ = _tir.__all__ + ["Buffer", "Ptr", "bool", "prim_func"]
18 changes: 18 additions & 0 deletions python/tvm/script/relax.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""TVM Script APIs of TVM Python Package for Relax"""
from .parser.relax import * # pylint: disable=redefined-builtin,unused-wildcard-import,wildcard-import
18 changes: 18 additions & 0 deletions python/tvm/script/tir.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""TVM Script APIs of TVM Python Package for TIR"""
from .parser.tir import * # pylint: disable=redefined-builtin,unused-wildcard-import,wildcard-import