Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
Fix after rebase, and reorganize the TVMScript folder structure.
Browse files Browse the repository at this point in the history
Co-authored-by: Junru Shao <[email protected]>
Co-authored-by: Siyuan Feng <[email protected]>
  • Loading branch information
3 people committed Nov 18, 2022
1 parent e727746 commit 304048c
Show file tree
Hide file tree
Showing 34 changed files with 136 additions and 1,365 deletions.
9 changes: 4 additions & 5 deletions Jenkinsfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions include/tvm/relax/tuning_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,13 @@ class TuningRecord : public runtime::ObjectRef {
TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS(TuningRecord, runtime::ObjectRef, TuningRecordNode);
};

/*! \brief The equality check for Workload */
struct WorkloadEqual {
bool operator()(const meta_schedule::Workload& a, const meta_schedule::Workload& b) const {
return a->shash == b->shash && tvm::StructuralEqual()(a->mod, b->mod);
}
};

/* \brief The abstract interface of database. */
class DatabaseNode : public runtime::Object {
public:
Expand Down
4 changes: 0 additions & 4 deletions include/tvm/tir/analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,6 @@ const PrimFuncNode* FindEntryFunc(const IRModule& mod, GlobalVar* result_g_var);
* \return The anchor block if found, nullptr otherwise.
*/
const tir::BlockNode* FindAnchorBlock(const IRModule& mod);
* \brief Annotate Op Pattern Kind for PrimFunc, which is used in relax FuseOps.
* \param func The PrimFunc to be analyzed.
* \return The Op Pattern Kind.
*/

// Pass variants of verification analysis
// directly throws RuntimeError when verification fails.
Expand Down
14 changes: 7 additions & 7 deletions python/tvm/script/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
# 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, aimed to support TIR"""
from . import _parser, parser_v1
"""TVM Script APIs of TVM Python Package"""
from . import parser, parser_v1

#############
from ._parser import ir
from ._parser import ir_module
from ._parser import parse as from_source_v2
from ._parser import tir
from ._parser import relax
from .parser import ir
from .parser import ir_module
from .parser import parse as from_source_v2
from .parser import tir
from .parser import relax

#############
from .parser_v1 import from_source as from_source_v1
Expand Down
63 changes: 0 additions & 63 deletions python/tvm/script/_parser/core/dispatch.py

This file was deleted.

46 changes: 0 additions & 46 deletions python/tvm/script/_parser/core/entry.py

This file was deleted.

Loading

0 comments on commit 304048c

Please sign in to comment.