__init__.py 1.96 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# 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.
17
# pylint: disable=redefined-builtin, wildcard-import
18
"""TVM: Low level DSL/IR stack for tensor computation."""
tqchen committed
19
from __future__ import absolute_import as _abs
20

21
from . import tensor
22
from . import arith
23
from . import expr
tqchen committed
24 25
from . import stmt
from . import make
tqchen committed
26
from . import ir_pass
27
from . import codegen
28
from . import container
29
from . import schedule
30
from . import module
31
from . import node
32
from . import attrs
33
from . import ir_builder
34
from . import target
35
from . import generic
36
from . import hybrid
37
from . import testing
38
from . import error
39

40
from . import ndarray as nd
41 42
from .ndarray import context, cpu, gpu, opencl, cl, vulkan, metal, mtl
from .ndarray import vpi, rocm, opengl, ext_dev
43

44
from ._ffi.runtime_ctypes import TypeCode
45
from ._ffi.ndarray import TVMContext
46
from ._ffi.function import Function
47
from ._ffi.base import TVMError, __version__
48
from .api import *
49
from .intrin import *
50
from .tensor_intrin import decl_tensor_intrin
51
from .node import register_node
52
from .ndarray import register_extension
53
from .schedule import create_schedule
54
from .build_module import build, lower, build_config
55
from .tag import tag_scope
56 57

# Contrib initializers
58
from .contrib import rocm as _rocm, nvcc as _nvcc, sdaccel as _sdaccel