Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
3f2e6b3
add cugraph poc
zhuochenKIDD Mar 2, 2021
91b6b3f
[RELAY] Modify some passes to not stack overflow on many lets. (#7558)
tkonolige Mar 3, 2021
67bba90
[torch] Add linear operator support (#7569)
apivovarov Mar 3, 2021
cbfdf18
fix device api define
zhuochenKIDD Mar 3, 2021
37053e1
[Tensorize] Support conds depend on outer loop vars inside tensorize …
leeexyz Mar 3, 2021
296700e
[CI][VitisAI] Update CI Vitis AI PyXIR version (#7575)
jtuyls Mar 3, 2021
dccc1ab
[SPIR-V] Add SPIR-V lowering for While node (#7574)
masahi Mar 3, 2021
25bf449
[Relay][Quantization] Fix Bug Which Cause Negative Left Shift Op (#7432)
Johnson9009 Mar 3, 2021
1d5f334
[Relay][bugfix][error reporting] BiasAddRel does not check for a nega…
slyubomirsky Mar 3, 2021
980cf80
compile engine dump tir and shape funcs (#7552)
wangxiang2713 Mar 3, 2021
73a0b96
[RUNTIME] Move Map into runtime (#7570)
tkonolige Mar 3, 2021
41c0591
[AutoSchedule] Fix a flaky test (#7580)
comaniac Mar 4, 2021
3f5f84d
[AutoScheduler] Querying and sampling in task extraction (#7571)
comaniac Mar 4, 2021
ece752f
remove DeviceAPI def
zhuochenKIDD Mar 4, 2021
66f9139
[DOCKER] Fix: install script regarding get-pip.py during docker build…
brianlan Mar 4, 2021
02a6483
[ETHOSN] Add support for 20.11 Ethos-N driver stack release (#7506)
tristan-arm Mar 4, 2021
6aae48b
Fixes for using Python APIs from Rust. (#7085)
jroesch Mar 4, 2021
83ab234
Add segment sum Op to relay and 7 corresponding TF Ops , fix scatter_…
codeislife99 Mar 4, 2021
3fbb0a3
[BYOC][TensorRT] Make TRT runtime robust to empty or weird subgraphs …
Mar 4, 2021
d7f5753
[SPIRV] Support Bool buffer argument (#7591)
masahi Mar 5, 2021
d5cb3cb
[PyTorch] Guarantee data input is the first argument (#7592)
comaniac Mar 5, 2021
61e799c
[CI] Bump arm version (#7584)
zhiics Mar 5, 2021
fb06fd8
Fix for dynamic batch size conv2d nhwc (#7598)
masahi Mar 5, 2021
b9adce2
[Frontend][MXNet] Fix default value for is_ascend in topk (#7568)
Mar 5, 2021
c5f608f
[BYOC][TRT]Fix groups cannot divide output channel count error for de…
Laurawly Mar 5, 2021
5d5bbfb
Support negative axis for gather (#7600)
codeislife99 Mar 5, 2021
c0b9688
[Vulkan] Support passing 64 bit scalar (#7572)
masahi Mar 5, 2021
7344b66
Fix autotuning, broken in #7337 (#7566)
Mar 5, 2021
d6c0cea
[RUNTIME] Add device specific timers (#7472)
tkonolige Mar 5, 2021
1ae4697
[Relay][Pass] Avoid stack overflow when using PostOrderRewrite (#7588)
hgt312 Mar 5, 2021
783be9d
[TOPI] disable test_shift with i8 datatype (#7597)
mesauser Mar 5, 2021
0b4f669
[AutoSchedule] Sparse dense tuning support with custom sketch rule (#…
jcf94 Mar 6, 2021
69c1c6d
Move SimplifyConvPad to a new pass and don't enable it by default (#7…
Mar 6, 2021
875f8ee
[Executor][Bugfix] Properly return and unflatten outputs from GraphEx…
altanh Mar 6, 2021
8aa2a7c
[CUDA] BF16 support (#7014)
hgt312 Mar 6, 2021
760e9b2
[Torch, QNN] Support quantized mobilenet v3 from torch 1.8 (#7606)
masahi Mar 8, 2021
94b7438
fix lint by clang-format
zhuochenKIDD Mar 8, 2021
cc7f8dc
[TE] Fix bug in AutoInlineElemWise and implement AutoInlineBroadcast …
leeexyz Mar 8, 2021
ca303aa
[Relay] add ShapeFunc for tanh (#6898)
monklof Mar 8, 2021
8d1f5b2
[Relay] Fix relay op strategy for cuda dense int8 (#7586)
huochaitiantang Mar 8, 2021
717c5e0
Add logging to diagnose flaky ci-qemu test (#7610)
Mar 8, 2021
b827845
[Relay] add ShapeFunc for one_hot op (#7490)
monklof Mar 8, 2021
d485d6d
fix format lint issue
zhuochenKIDD Mar 9, 2021
89bafd5
[RUNTIME] Unify load params interface (#7559)
tkonolige Mar 9, 2021
a8d1055
[FIX] Fix clang12 warnings (#7593)
tkonolige Mar 9, 2021
5e7f35d
add cugraph poc
zhuochenKIDD Mar 2, 2021
11f3264
fix device api define
zhuochenKIDD Mar 3, 2021
6832974
remove DeviceAPI def
zhuochenKIDD Mar 4, 2021
4fb418c
fix lint by clang-format
zhuochenKIDD Mar 8, 2021
e43df61
fix format lint issue
zhuochenKIDD Mar 9, 2021
6eb950a
Merge branch 'cugraph' of github.com:zhuochenKIDD/incubator-tvm into …
zhuochenKIDD Mar 9, 2021
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 3rdparty/vta-hw
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tvm_option(USE_LLVM "Build with LLVM, can be set to specific llvm-config path" O
tvm_option(USE_STACKVM_RUNTIME "Include stackvm into the runtime" OFF)
tvm_option(USE_GRAPH_RUNTIME "Build with tiny graph runtime" ON)
tvm_option(USE_GRAPH_RUNTIME_DEBUG "Build with tiny graph runtime debug mode" OFF)
tvm_option(USE_GRAPH_RUNTIME_CUGRAPH "Build with tiny graph runtime cuGraph launch mode" OFF)
tvm_option(USE_OPENMP "Build with OpenMP thread pool implementation" OFF)
tvm_option(USE_RELAY_DEBUG "Building Relay in debug mode..." OFF)
tvm_option(USE_RTTI "Build with RTTI" ON)
Expand Down Expand Up @@ -321,6 +322,15 @@ if(USE_GRAPH_RUNTIME)
set_source_files_properties(${RUNTIME_GRAPH_SRCS}
PROPERTIES COMPILE_DEFINITIONS "TVM_GRAPH_RUNTIME_DEBUG")
endif(USE_GRAPH_RUNTIME_DEBUG)

if(USE_GRAPH_RUNTIME_CUGRAPH)
message(STATUS "Build with Graph runtime cuGraph support...")
file(GLOB RUNTIME_CUGRAPH_SRCS src/runtime/graph/cugraph/*.cc)
list(APPEND RUNTIME_SRCS ${RUNTIME_CUGRAPH_SRCS})
set_source_files_properties(${RUNTIME_GRAPH_SRCS}
PROPERTIES COMPILE_DEFINITIONS "TVM_GRAPH_RUNTIME_CUGRAPH")
endif(USE_GRAPH_RUNTIME_CUGRAPH)

endif(USE_GRAPH_RUNTIME)

if(USE_VM_PROFILER)
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ci_cpu = "tlcpack/ci-cpu:v0.72-t0"
ci_wasm = "tlcpack/ci-wasm:v0.70"
ci_i386 = "tlcpack/ci-i386:v0.72-t0"
ci_qemu = "tlcpack/ci-qemu:v0.01"
ci_arm = "tlcpack/ci-arm:v0.01"
ci_arm = "tlcpack/ci-arm:v0.02"
// <--- End of regex-scanned config.

// tvm libraries
Expand Down
2 changes: 1 addition & 1 deletion apps/android_camera/models/prepare_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def main(model_str, output_path):
f.write(graph)
print("dumping params...")
with open(output_path_str + "/" + "deploy_param.params", "wb") as f:
f.write(relay.save_param_dict(params))
f.write(runtime.save_param_dict(params))
print("dumping labels...")
synset_url = "".join(
[
Expand Down
6 changes: 3 additions & 3 deletions apps/bundle_deploy/build_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import os
from tvm import relay
import tvm
from tvm import te
from tvm import te, runtime
import logging
import json
from tvm.contrib import cc as _cc
Expand Down Expand Up @@ -70,7 +70,7 @@ def build_module(opts):
with open(
os.path.join(build_dir, file_format_str.format(name="params", ext="bin")), "wb"
) as f_params:
f_params.write(relay.save_param_dict(params))
f_params.write(runtime.save_param_dict(params))


def build_test_module(opts):
Expand Down Expand Up @@ -113,7 +113,7 @@ def build_test_module(opts):
with open(
os.path.join(build_dir, file_format_str.format(name="test_params", ext="bin")), "wb"
) as f_params:
f_params.write(relay.save_param_dict(lowered_params))
f_params.write(runtime.save_param_dict(lowered_params))
with open(
os.path.join(build_dir, file_format_str.format(name="test_data", ext="bin")), "wb"
) as fp:
Expand Down
1 change: 1 addition & 0 deletions apps/bundle_deploy/runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <tvm/runtime/registry.h>

#include "../../src/runtime/c_runtime_api.cc"
#include "../../src/runtime/container.cc"
#include "../../src/runtime/cpu_device_api.cc"
#include "../../src/runtime/file_utils.cc"
#include "../../src/runtime/graph/graph_runtime.cc"
Expand Down
4 changes: 2 additions & 2 deletions apps/sgx/src/build_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from os import path as osp
import sys

from tvm import relay
from tvm import relay, runtime
from tvm.relay import testing
import tvm
from tvm import te
Expand All @@ -49,7 +49,7 @@ def main():
with open(osp.join(build_dir, "graph.json"), "w") as f_graph_json:
f_graph_json.write(graph)
with open(osp.join(build_dir, "params.bin"), "wb") as f_params:
f_params.write(relay.save_param_dict(params))
f_params.write(runtime.save_param_dict(params))


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions apps/wasm-standalone/wasm-graph/tools/build_graph_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import onnx
import tvm
from tvm import relay
from tvm import relay, runtime


def _get_mod_and_params(model_file):
Expand Down Expand Up @@ -60,7 +60,7 @@ def build_graph_lib(model_file, opt_level):
f_graph.write(graph_json)

with open(os.path.join(out_dir, "graph.params"), "wb") as f_params:
f_params.write(relay.save_param_dict(params))
f_params.write(runtime.save_param_dict(params))


if __name__ == "__main__":
Expand Down
3 changes: 3 additions & 0 deletions cmake/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ set(USE_GRAPH_RUNTIME ON)
# Whether enable additional graph debug functions
set(USE_GRAPH_RUNTIME_DEBUG OFF)

# Whether enable tiny graph runtime for cudaGraph Launch
set(USE_GRAPH_RUNTIME_CUGRAPH OFF)

# Whether enable additional vm profiler functions
set(USE_VM_PROFILER OFF)

Expand Down
3 changes: 2 additions & 1 deletion cmake/utils/FindEthosN.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ macro(find_ethosn use_ethosn)
find_library(ETHOSN_COMPILER_LIBRARY NAMES EthosNSupport)

set(ETHOSN_PACKAGE_VERSION "0.1.1")
set(ETHOSN_DEFINITIONS -DETHOSN_API_VERSION=${USE_ETHOSN_API_VERSION})

if(${USE_ETHOSN_HW} MATCHES ${IS_TRUE_PATTERN})
# Runtime hardware support
Expand All @@ -70,7 +71,7 @@ macro(find_ethosn use_ethosn)
find_library(ETHOSN_RUNTIME_LIBRARY NAMES EthosNDriver
PATHS ${__ethosn_stack}/lib)
find_library(ETHOSN_RUNTIME_LIBRARY NAMES EthosNDriver)
set(ETHOSN_DEFINITIONS -DETHOSN_HW)
set(ETHOSN_DEFINITIONS -DETHOSN_HW -DETHOSN_API_VERSION=${USE_ETHOSN_API_VERSION})
endif ()

if(ETHOSN_COMPILER_LIBRARY)
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.ci_arm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

# CI docker arm env
# tag: v0.10
# tag: v0.02

FROM ubuntu:18.04

Expand Down
2 changes: 1 addition & 1 deletion docker/install/ubuntu_install_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ apt-get install -y python-pip python-dev python3.6 python3.6-dev
rm -f /usr/bin/python3 && ln -s /usr/bin/python3.6 /usr/bin/python3

# Install pip
cd /tmp && wget -q https://bootstrap.pypa.io/get-pip.py && python2 get-pip.py && python3.6 get-pip.py
cd /tmp && wget -q https://bootstrap.pypa.io/get-pip.py && python3.6 get-pip.py

# Pin pip version
pip3 install pip==19.3.1
4 changes: 2 additions & 2 deletions docker/install/ubuntu_install_vitis_ai_packages_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set -o pipefail
export PYXIR_HOME=/opt/pyxir
mkdir "$PYXIR_HOME"

pip3 install progressbar
pip3 install progressbar h5py==2.10.0

git clone --recursive --branch v0.1.3 https://github.com/Xilinx/pyxir.git "${PYXIR_HOME}"
git clone --recursive --branch v0.1.6 --depth 1 https://github.com/Xilinx/pyxir.git "${PYXIR_HOME}"
cd "${PYXIR_HOME}" && python3 setup.py install
2 changes: 1 addition & 1 deletion docs/deploy/android.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The code below will save the compilation output which is required on android tar
with open("deploy_graph.json", "w") as fo:
fo.write(graph.json())
with open("deploy_param.params", "wb") as fo:
fo.write(relay.save_param_dict(params))
fo.write(runtime.save_param_dict(params))

deploy_lib.so, deploy_graph.json, deploy_param.params will go to android target.

Expand Down
4 changes: 2 additions & 2 deletions golang/sample/gen_mobilenet_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

import os
from tvm import relay, transform
from tvm import relay, transform, runtime
from tvm.contrib.download import download_testdata


Expand Down Expand Up @@ -94,4 +94,4 @@ def extract(path):
fo.write(graph)

with open("./mobilenet.params", "wb") as fo:
fo.write(relay.save_param_dict(params))
fo.write(runtime.save_param_dict(params))
2 changes: 1 addition & 1 deletion include/tvm/arith/bound.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <tvm/arith/int_set.h>
#include <tvm/ir/expr.h>
#include <tvm/node/container.h>
#include <tvm/runtime/container.h>
#include <tvm/tir/expr.h>
#include <tvm/tir/stmt.h>

Expand Down
2 changes: 1 addition & 1 deletion include/tvm/arith/pattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define TVM_ARITH_PATTERN_H_

#include <tvm/ir/expr.h>
#include <tvm/node/container.h>
#include <tvm/runtime/container.h>
#include <tvm/tir/expr.h>

namespace tvm {
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/auto_scheduler/measure_record.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
namespace tvm {
namespace auto_scheduler {

const std::string AUTO_SCHEDULER_LOG_VERSION = "v0.5"; // NOLINT(*)
const std::string AUTO_SCHEDULER_LOG_VERSION = "v0.6"; // NOLINT(*)

/*! \brief Callback for logging the input and results of measurements to file */
class RecordToFileNode : public MeasureCallbackNode {
Expand Down
8 changes: 7 additions & 1 deletion include/tvm/auto_scheduler/search_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define TVM_AUTO_SCHEDULER_SEARCH_TASK_H_

#include <tvm/auto_scheduler/compute_dag.h>
#include <tvm/runtime/ndarray.h>
#include <tvm/target/target.h>

namespace tvm {
Expand Down Expand Up @@ -120,6 +121,8 @@ class SearchTaskNode : public Object {
HardwareParams hardware_params;
/*! \brief The layout rewrite option used for measuring programs. */
LayoutRewriteOption layout_rewrite_option;
/*! \brief Names of some user defined input data used in program measuring. */
Array<String> task_input_names;

void VisitAttrs(tvm::AttrVisitor* v) {
v->Visit("compute_dag", &compute_dag);
Expand All @@ -128,6 +131,7 @@ class SearchTaskNode : public Object {
v->Visit("target_host", &target_host);
v->Visit("hardware_params", &hardware_params);
v->Visit("layout_rewrite_option", &layout_rewrite_option);
v->Visit("task_input_names", &task_input_names);
}

static constexpr const char* _type_key = "auto_scheduler.SearchTask";
Expand All @@ -148,9 +152,11 @@ class SearchTask : public ObjectRef {
* \param target_host The target host device of this search task.
* \param hardware_params Hardware parameters used in this search task.
* \param layout_rewrite_option The layout rewrite option used for measuring programs.
* \param task_input_names Names of some user defined input data used in program measuring.
*/
SearchTask(ComputeDAG compute_dag, String workload_key, Target target, Target target_host,
Optional<HardwareParams> hardware_params, LayoutRewriteOption layout_rewrite_option);
Optional<HardwareParams> hardware_params, LayoutRewriteOption layout_rewrite_option,
Array<String> task_input_names);

TVM_DEFINE_OBJECT_REF_METHODS(SearchTask, ObjectRef, SearchTaskNode);
};
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/ir/adt.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

#include <tvm/ir/expr.h>
#include <tvm/ir/type.h>
#include <tvm/node/container.h>
#include <tvm/node/node.h>
#include <tvm/runtime/container.h>
#include <tvm/runtime/object.h>

#include <string>
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/ir/expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#include <tvm/ir/span.h>
#include <tvm/ir/type.h>
#include <tvm/node/container.h>
#include <tvm/node/node.h>
#include <tvm/runtime/container.h>
#include <tvm/runtime/object.h>

#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/ir/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include <tvm/ir/expr.h>
#include <tvm/ir/function.h>
#include <tvm/ir/type.h>
#include <tvm/node/container.h>
#include <tvm/parser/source_map.h>
#include <tvm/runtime/container.h>

#include <string>
#include <unordered_map>
Expand Down
1 change: 0 additions & 1 deletion include/tvm/ir/transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
#include <tvm/ir/diagnostic.h>
#include <tvm/ir/error.h>
#include <tvm/ir/module.h>
#include <tvm/node/container.h>
#include <tvm/runtime/container.h>
#include <tvm/support/with.h>

Expand Down
2 changes: 1 addition & 1 deletion include/tvm/ir/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
#define TVM_IR_TYPE_H_

#include <tvm/ir/span.h>
#include <tvm/node/container.h>
#include <tvm/node/node.h>
#include <tvm/runtime/container.h>
#include <tvm/runtime/data_type.h>
#include <tvm/runtime/object.h>

Expand Down
2 changes: 1 addition & 1 deletion include/tvm/node/attr_registry_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#ifndef TVM_NODE_ATTR_REGISTRY_MAP_H_
#define TVM_NODE_ATTR_REGISTRY_MAP_H_

#include <tvm/node/container.h>
#include <tvm/runtime/container.h>

#include <utility>
#include <vector>
Expand Down
Loading