Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync dmlc/tvm 20190513 #31

Merged
merged 106 commits into from
May 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
a3154c2
[REFACTOR] Use more TypedPackedFuncs (#2981)
kazimuth Apr 10, 2019
10c5378
[AutoTVM] fix argument type for curve feature (#3004)
merrymercy Apr 11, 2019
b1f5d90
Support SpaceToBatchND/BatchToSpaceND in Tensorflow frontend (#2943)
alexeyr Apr 12, 2019
918729d
[AutoTVM] Fix typos (#3014)
gaocegege Apr 12, 2019
6a9c060
[NIT] fix relay invariant error message (#3011)
eqy Apr 12, 2019
f7438f5
[Relay] Add gradient operator tutorial docs (#2751)
weberlo Apr 12, 2019
0711414
[Relay] C++ GraphRuntimeCodegen, Deprecate Python2 (#2986)
antinucleon Apr 12, 2019
5b5e0fb
[Bugfix] Fix caffe2 nnvm frontend (#2996)
hlu1 Apr 13, 2019
7561043
[Relay][Text Format] Pretty Printer Smart Inlining (#2881)
joshpoll Apr 13, 2019
55fa34a
[Heterogeneous][Bugfix] Fix bug of wrongly generated device_map (#2990)
imorinaga Apr 13, 2019
e906b93
[COMMUNITY] @hlu1 -> Reviewer (#3021)
tqchen Apr 13, 2019
6254550
[RUST][FRONTEND] Fix resnet example (#3000)
ehsanmok Apr 15, 2019
a976268
[Relay] use unordered_map instead of map in ANF (#3024)
MarisaKirisame Apr 15, 2019
3777f7d
[Relay] Add compiler pass tutorial docs (#2746)
weberlo Apr 15, 2019
1db51e3
[DOC] Add Android Tutorial (#2977)
tkat0 Apr 16, 2019
1d71097
[ARITH] Fix x||!x for comparisons in rewrite simplifier (#3029)
sgrechanik-h Apr 16, 2019
295b33d
[Relay] Fix BatchMatMulRel typerelation (#3032)
MarisaKirisame Apr 16, 2019
c68b39f
Simplify TF get_output_names (#3025)
apivovarov Apr 16, 2019
e9466fb
Update expr.h (#3031)
MarisaKirisame Apr 16, 2019
f141d34
Add caffe2 nnvm frontend to CI (#3018)
hlu1 Apr 16, 2019
4d64ff2
Ensure interpreted functions can take values that are not TensorValue…
slyubomirsky Apr 16, 2019
8cc9fa2
Update dmlc-core, fix default ctors of NodeEntry (#3017)
larroy Apr 17, 2019
a35ea04
[Relay] Fix Fuse (#3035)
MarisaKirisame Apr 17, 2019
0f66c3c
Support Deriving channels when it is not provided in AlterLayout. (#2…
cbalint13 Apr 17, 2019
60b6d26
Implement relay nn.bias_add compute in C++ (#3027)
Apr 17, 2019
c66a3ff
[Relay] Add printing for ADT Type (#3030)
MarisaKirisame Apr 17, 2019
1d068a4
Additional fix for PR#2972 (#3044)
cbalint13 Apr 18, 2019
80b04c6
Bugfix for path issues (#3038)
siju-samuel Apr 18, 2019
6b2247b
[Relay][Frontend] TF Tile Round Sign Pow Exp Reverse (#2960)
yongwww Apr 19, 2019
ccd4160
[RELAY] Avoid unnecessarily reconstructing FunctionNode. (#3047)
lixiaoquan Apr 19, 2019
3460064
fix PostOrderVisit signature (#3048)
masahi Apr 19, 2019
1f537a6
[Bugfix] Fix winograd nnpack fp16 (#3046)
hlu1 Apr 20, 2019
5b903ea
[TOPI] Rename output tensors for better readability (#3006)
merrymercy Apr 20, 2019
64569a3
[Frontend][TF] Fix Placeholder issue (#2834)
yongwww Apr 21, 2019
55b014d
Fix code comment and typos. (#3063)
viirya Apr 22, 2019
dde0f8b
[Relay] fix target string (#3071)
antinucleon Apr 22, 2019
3759281
Enhance upsample operator to adapt onnx opset version 9 for nnvm comp…
gemfield Apr 23, 2019
65fe95c
Fix UnboundLocalError: local variable 'tensor' referenced before assi…
OuHangKresnik Apr 24, 2019
cbc194b
check in (#3089)
eqy Apr 25, 2019
84da99a
Use bridge network and expose port on macOS when launch docker image …
viirya Apr 25, 2019
fc30118
[Relay][Text Format] Fix Pretty Printing Annotations (#3041)
joshpoll Apr 25, 2019
c48c6e5
[Relay][TOPI] Add rsqrt operator (#2949)
makihiro Apr 25, 2019
72d73ab
Add VSCode directories to gitignore (#3095)
weberlo Apr 25, 2019
5e858bb
[Relay][TensorFlow] Remove 'input_0d_mismatch' special handling (#3087)
lixiaoquan Apr 26, 2019
9ff03ba
[TEST][FLAKY] fix for #3099 (#3101)
srkreddy1238 Apr 26, 2019
5200c47
[COMMUNITY] @vinx13 -> committer (#3100)
tqchen Apr 26, 2019
e057e2a
[Relay, Quantization, TOPI] int8 dense on CUDA & Dense op quantizatio…
vinx13 Apr 26, 2019
06c60bf
[TVM][ARITH] Teach BoundDeduce to handle the case in which target var…
derisavi Apr 26, 2019
3560e7a
1) fixed a functional bug in loop partitioning algorithm that is expo…
derisavi Apr 26, 2019
992f918
Fixed issue #3069 by checking op tag (#3070)
kumasento Apr 27, 2019
a8fe6e8
[ROCM] Fix conv2d (#3107)
antinucleon Apr 27, 2019
23e7e7d
[TOPI] Bitserial dense operators for CPU (#3051)
Apr 27, 2019
f2041c8
Check that the node is not null, add contains to OpMap (#3037)
larroy Apr 27, 2019
fe23d28
fixed some typos (#3112)
MaxXSoft Apr 28, 2019
b63435a
[TOPI] Fix group_conv2d unit test (#3113)
vinx13 Apr 28, 2019
9ac4922
[CI] Add file type check (#3116)
tqchen Apr 28, 2019
1cd1f35
[LINT] recover lint error, add asf header check (#3117)
tqchen Apr 28, 2019
5b5ff51
[Relay, OpFusion] Better tuple fusion implementation (#3092)
masahi Apr 29, 2019
ceeefc4
porting new upsample test case from nnvm to relay (#3115)
gemfield Apr 29, 2019
69f0a93
[Lang] Fix undef BijectiveLayout and add scalar layout support (#3105)
yzhliu Apr 29, 2019
afcb3d9
[Relay][TOPI] Gluncv SSD support on the GPU (#2784)
Laurawly Apr 29, 2019
e88f46a
Fix bug in ONNX importer (#3084)
jroesch Apr 29, 2019
0e33333
Fixing a doc nit (#3123)
unrahul Apr 30, 2019
1e2748b
[Bugfix] Fix type code error for StringImm (#3050)
icemelon May 1, 2019
7cbcf7e
[RELAY][FUSION] Enhance fusion rule that starts from elemwise and bro…
zhiics May 1, 2019
057e796
[Relay][Tensorflow] Allow an op as loop var. (#3056)
lixiaoquan May 1, 2019
b7599cc
[FRONTEND][TFLITE] Add FULLY_CONNECTED op into tflite frontend, suppo…
songqun May 1, 2019
6750d95
[DOC] various assorted grammar fixes (#3127)
mshawcroft May 1, 2019
00dd7a0
Fix PRelu layout in Relay (#3013)
FrozenGene May 1, 2019
d719943
Minor addition to graph runtime debug (#3129)
yidawang May 1, 2019
34e82c0
[DOC] Add missing targets to target_name documentation. (#3128)
mshawcroft May 1, 2019
098b6c0
Update CONTRIBUTORS.md (#3130)
merrymercy May 2, 2019
9e43187
[Relay][Runtime] Add support for virtual machine Objects (#3120)
jroesch May 2, 2019
85bf236
[LINT] Add more allowed file type
tqchen May 2, 2019
224c0ec
Add MXNet converter for RNN layer ops (#3125)
icemelon May 2, 2019
4326acc
[Relay][Runtime] Add memory manager for NDArray (#3121)
jroesch May 2, 2019
8e07746
[DOC] Various documentation improvements (#3133)
mshawcroft May 2, 2019
5775d1a
[DOC] Developer documentation for InferBound pass. (#3126)
jdavies-huawei May 3, 2019
ef78f81
[ARITH] Constraint-aware ConstIntBound, Enhance CanonicalSimplify (#3…
tqchen May 4, 2019
0a570ed
[TOPI] Fix mali conv2d performance regression (#3131)
merrymercy May 5, 2019
f1b9b72
[Relay][Frontend] add log op in tf frontend (#3111)
yongwww May 5, 2019
87374d1
[ROCm] Fix dense autotvm template registration (#3136)
masahi May 5, 2019
f6c52fa
Handle vectorize for LE statement (#3137)
wweic May 8, 2019
aab1f6f
[DOC] fix :code: markup syntax (#3140)
mshawcroft May 8, 2019
84a4def
[Bugfix][TOPI] conv2d_transpose bugfix (#3138)
Laurawly May 8, 2019
f4bf163
Relay C++ Build Module (#3082)
antinucleon May 8, 2019
78b61f7
[CI] Always run cpptest during build to ensure library correctness (#…
tqchen May 8, 2019
560a21e
fix python lint warnings (#3145)
zhiics May 8, 2019
82dfab1
[RFC] [VTA] [TSIM] Enabling Cycle-Accurate Hardware Simulation for VT…
vegaluisjose May 8, 2019
c1648d0
[Relay][Op] Adaptive pooling (#3085)
kevinthesun May 9, 2019
1d16e83
[BuildModule] Fix AlterLayout Pass (#3155)
antinucleon May 9, 2019
b260969
[Relay][Runtime] Implementation of Relay VM (#2889)
jroesch May 9, 2019
5ae0ecc
add more syncs (#3151)
Laurawly May 9, 2019
bf3ac22
Fix a multithreaded bug in llvm LazyInitJIT (#3158)
May 9, 2019
82f5a55
[codegen] heterogeneous build for c++ (#3144)
zhiics May 10, 2019
9b44734
Fix a tensorflow test bug. (#3165)
lixiaoquan May 10, 2019
c16932e
[HybridScript] Capture constant external python variables (#3157)
merrymercy May 10, 2019
e105532
Register all operators' Python attributes in Python so they can be ea…
slyubomirsky May 11, 2019
9a90354
[Relay][TensorFlow] Support tf.math.reduce_prod (#3166)
lixiaoquan May 11, 2019
e1e357d
[Bugfix] Check file exists before removing it (#3178)
hlu1 May 11, 2019
b9dcb09
[Relay][Runtime] Add VM compiler. (#3139)
jroesch May 11, 2019
307f978
[GOLANG] Some fixes for golang latest version compiler. #3119 (#3182)
srkreddy1238 May 13, 2019
0045a3f
Fix a bug of flatten in ONNX to Relay converter (#3180)
Oldpan May 13, 2019
fd1e26a
Update dmlc_tvm_commit_id
May 13, 2019
c6f8342
Fix file type
May 13, 2019
a8e6793
Add Apache licence header
May 13, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ tvm_t.*
.pytest_cache
.local

# Visual Studio Code
.vscode

# tmp file
.nfs*

Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/HalideIR
14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,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_RELAY_DEBUG "Building Relay in debug mode..." OFF)
tvm_option(USE_SGX "Build with SGX" OFF)
tvm_option(USE_RTTI "Build with RTTI" ON)
tvm_option(USE_MSVC_MT "Build with MT" OFF)
Expand Down Expand Up @@ -85,6 +86,7 @@ else(MSVC)
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-std=c++11" SUPPORT_CXX11)
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
message("Build in Debug mode")
set(CMAKE_C_FLAGS "-O0 -g -Wall -fPIC ${CMAKE_C_FLAGS} -rdynamic")
set(CMAKE_CXX_FLAGS "-O0 -g -Wall -fPIC -std=c++11 ${CMAKE_CXX_FLAGS} -rdynamic")
else()
Expand Down Expand Up @@ -140,7 +142,10 @@ file(GLOB TOPI_SRCS
)
file(GLOB_RECURSE HALIDEIR_SRCS 3rdparty/HalideIR/src/*.cpp)
list(APPEND COMPILER_SRCS ${HALIDEIR_SRCS})
file(GLOB RUNTIME_SRCS src/runtime/*.cc)
file(GLOB RUNTIME_SRCS
src/runtime/*.cc
src/runtime/vm/*.cc
)

# Package runtime rules
if(NOT USE_RTTI)
Expand Down Expand Up @@ -200,6 +205,13 @@ add_library(tvm SHARED ${COMPILER_SRCS} ${RUNTIME_SRCS})
add_library(tvm_topi SHARED ${TOPI_SRCS})
add_library(tvm_runtime SHARED ${RUNTIME_SRCS})
add_library(tvm_runtime_static STATIC ${RUNTIME_SRCS})

if(USE_RELAY_DEBUG)
message(STATUS "Building Relay in debug mode...")
set_target_properties(tvm PROPERTIES COMPILE_DEFINITIONS "USE_RELAY_DEBUG")
set_target_properties(tvm PROPERTIES COMPILE_DEFINITIONS "NDEBUG")
endif(USE_RELAY_DEBUG)

if(NOT USE_SGX STREQUAL "OFF")
add_dependencies(tvm sgx_edl)
add_dependencies(tvm_runtime sgx_edl tvm_t)
Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ We do encourage everyone to work anything they are interested in.
- [Yuwei Hu](https://github.com/Huyuwei): @Huyuwei - topi, frontends
- [Nick Hynes](https://github.com/nhynes): @nhynes: - sgx, rust
- [Ziheng Jiang](https://github.com/ZihengJiang) (PMC): @ZihengJiang - relay, compiler
- [Wuwei Lin](https://github.com/vinx13): @vinx13 - relay, topi
- [Yizhi Liu](https://github.com/yzhliu) (PMC): @yzhliu - jvm, topi, relay
- [Masahiro Masuda](https://github.com/masahi): @masahi - topi, relay
- [Thierry Moreau](https://github.com/tmoreau89) (PMC): @tmoreau89 - vta
Expand All @@ -64,7 +65,9 @@ We do encourage everyone to work anything they are interested in.
- [Liangfu Chen](https://github.com/liangfu): @liangfu
- [Wei Chen](https://github.com/wweic): @wweic
- [Zhi Chen](https://github.com/zhiics): @zhiics
- [Meghan Cowan](https://github.com/cowanmeg): @cowanmeg
- [Sergei Grechanik](https://github.com/sgrechanik-h): @sgrechanik-h
- [Hao Lu](https://github.com/hlu1): @hlu1
- [Nick Hynes](https://github.com/nhynes): @nhynes
- [Yuwei Hu](https://github.com/Huyuwei): @Huyuwei
- [Yizhi Liu](https://github.com/yzhliu) : @yzhliu
Expand Down
10 changes: 6 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
// - Tag the new version as the lates
// - Periodically cleanup the old versions on local workers
//
ci_lint = "tvmai/ci-lint:v0.50"
ci_lint = "tvmai/ci-lint:v0.51"
ci_gpu = "tvmai/ci-gpu:v0.51"
ci_cpu = "tvmai/ci-cpu:v0.50"
ci_i386 = "tvmai/ci-i386:v0.50"
Expand Down Expand Up @@ -92,10 +92,13 @@ def make(docker_type, path, make_flag) {
timeout(time: max_time, unit: 'MINUTES') {
try {
sh "${docker_run} ${docker_type} ./tests/scripts/task_build.sh ${path} ${make_flag}"
// always run cpp test when build
sh "${docker_run} ${docker_type} ./tests/scripts/task_cpp_unittest.sh"
} catch (exc) {
echo 'Incremental compilation failed. Fall back to build from scratch'
sh "${docker_run} ${docker_type} ./tests/scripts/task_clean.sh ${path}"
sh "${docker_run} ${docker_type} ./tests/scripts/task_build.sh ${path} ${make_flag}"
sh "${docker_run} ${docker_type} ./tests/scripts/task_cpp_unittest.sh"
}
}
}
Expand Down Expand Up @@ -181,7 +184,6 @@ stage('Build') {
make(ci_cpu, 'build', '-j4')
pack_lib('cpu', tvm_lib)
timeout(time: max_time, unit: 'MINUTES') {
sh "${docker_run} ${ci_cpu} ./tests/scripts/task_cpp_unittest.sh"
sh "${docker_run} ${ci_cpu} ./tests/scripts/task_python_vta.sh"
sh "${docker_run} ${ci_cpu} ./tests/scripts/task_rust.sh"
sh "${docker_run} ${ci_cpu} ./tests/scripts/task_golang.sh"
Expand Down Expand Up @@ -214,7 +216,7 @@ stage('Build') {
}

stage('Unit Test') {
parallel 'python2/3: GPU': {
parallel 'python3: GPU': {
node('GPU') {
ws('workspace/tvm/ut-python-gpu') {
init_git()
Expand All @@ -226,7 +228,7 @@ stage('Unit Test') {
}
}
},
'python2/3: i386': {
'python3: i386': {
node('CPU') {
ws('workspace/tvm/ut-python-i386') {
init_git()
Expand Down
2 changes: 1 addition & 1 deletion apps/android_rpc/app/src/main/jni/Application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ include $(config)
# 1) armeabi is deprecated in NDK r16 and removed in r17
# 2) vulkan is not supported in armeabi
APP_ABI ?= armeabi-v7a arm64-v8a x86 x86_64 mips
APP_STL := c++_static
APP_STL := c++_shared

APP_CPPFLAGS += -DDMLC_LOG_STACK_TRACE=0 -DTVM4J_ANDROID=1 -std=c++11 -Oz -frtti
ifeq ($(USE_OPENCL), 1)
Expand Down
17 changes: 17 additions & 0 deletions benchmark/tensorrt/run_mxnet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 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.

import os
import time
import numpy as np
Expand Down
17 changes: 17 additions & 0 deletions benchmark/tensorrt/run_tvm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 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.

import time
import numpy as np
import argparse
Expand Down
16 changes: 16 additions & 0 deletions benchmark/tensorrt/run_tvm.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# 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.
#!/usr/bin/env bash

declare -a models=(
Expand Down
7 changes: 7 additions & 0 deletions cmake/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,10 @@ set(USE_SORT ON)
set(USE_TENSORRT OFF)
# Build ANTLR parser for Relay text format
set(USE_ANTLR OFF)

# Build TSIM for VTA
set(USE_VTA_TSIM OFF)

# Whether use Relay debug mode
set(USE_RELAY_DEBUG OFF)

7 changes: 7 additions & 0 deletions cmake/modules/VTA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ elseif(PYTHON)
find_library(__cma_lib NAMES cma PATH /usr/lib)
target_link_libraries(vta ${__cma_lib})
endif()

if(NOT USE_VTA_TSIM STREQUAL "OFF")
include_directories("vta/include")
file(GLOB RUNTIME_DPI_SRCS vta/src/dpi/module.cc)
list(APPEND RUNTIME_SRCS ${RUNTIME_DPI_SRCS})
endif()

else()
message(STATUS "Cannot found python in env, VTA build is skipped..")
endif()
17 changes: 17 additions & 0 deletions cmake/modules/contrib/TensorRT.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 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.

# TensorRT Module

if(IS_DIRECTORY ${USE_TENSORRT})
Expand Down
1 change: 0 additions & 1 deletion dmlc_tvm_commit_id

This file was deleted.

1 change: 1 addition & 0 deletions dmlc_tvm_commit_id.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
25c91d34c4de744cc9428944ccb1e84a72476ce5
10 changes: 9 additions & 1 deletion docker/Dockerfile.ci_lint
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,13 @@ FROM ubuntu:16.04
RUN apt-get update && apt-get install -y sudo wget
COPY install/ubuntu_install_python.sh /install/ubuntu_install_python.sh
RUN bash /install/ubuntu_install_python.sh
RUN apt-get install -y doxygen graphviz

RUN apt-get install -y doxygen graphviz git
RUN pip3 install cpplint pylint==1.9.4 mypy

# java deps for rat
COPY install/ubuntu_install_java.sh /install/ubuntu_install_java.sh
RUN bash /install/ubuntu_install_java.sh

COPY install/ubuntu_install_rat.sh /install/ubuntu_install_rat.sh
RUN bash /install/ubuntu_install_rat.sh
23 changes: 21 additions & 2 deletions docker/Dockerfile.demo_android
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,28 @@ RUN bash /install/ubuntu_install_gradle.sh
COPY install/ubuntu_install_androidsdk.sh /install/ubuntu_install_androidsdk.sh
RUN bash /install/ubuntu_install_androidsdk.sh

COPY install/ubuntu_install_vulkan.sh /install/ubuntu_install_vulkan.sh
RUN bash /install/ubuntu_install_vulkan.sh

ENV VULKAN_SDK /usr/local/VulkanSDK/1.0.65.0/x86_64
ENV PATH ${PATH}:${VULKAN_SDK}/bin
ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${VULKAN_SDK}/lib
ENV VK_LAYER_PATH ${VULKAN_SDK}/etc/explicit_layer.d

# Build TVM
COPY install/install_tvm_cpu.sh /install/install_tvm_cpu.sh
RUN bash /install/install_tvm_cpu.sh
RUN cd /usr && \
git clone --depth=1 https://github.com/dmlc/tvm --recursive && \
cd /usr/tvm && \
mkdir -p build && \
cd build && \
cmake \
-DUSE_LLVM=llvm-config-6.0 \
-DUSE_RPC=ON \
-DUSE_SORT=ON \
-DUSE_GRAPH_RUNTIME=ON \
-DUSE_VULKAN=ON \
.. && \
make -j10

# Environment variables
ENV PYTHONPATH=/usr/tvm/python:/usr/tvm/topi/python:/usr/tvm/nnvm/python/:/usr/tvm/vta/python:${PYTHONPATH}
8 changes: 7 additions & 1 deletion docker/bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ DOCKER_IMAGE_NAME=("$1")

if [ "$#" -eq 1 ]; then
COMMAND="bash"
CI_DOCKER_EXTRA_PARAMS=("-it --net=host")
if [[ $(uname) == "Darwin" ]]; then
# Docker's host networking driver isn't supported on macOS.
# Use default bridge network and expose port for jupyter notebook.
CI_DOCKER_EXTRA_PARAMS=("-it -p 8888:8888")
else
CI_DOCKER_EXTRA_PARAMS=("-it --net=host")
fi
else
shift 1
COMMAND=("$@")
Expand Down
27 changes: 27 additions & 0 deletions docker/install/ubuntu_install_rat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
# 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.

set -e
set -u
set -o pipefail

cd /tmp
wget -q http://www.trieuvan.com/apache//creadur/apache-rat-0.12/apache-rat-0.12-bin.tar.gz
tar xf apache-rat-0.12-bin.tar.gz
mv apache-rat-0.12/apache-rat-0.12.jar /bin/apache-rat.jar
rm -rf apache-rat-0.12-bin.tar.gz apache-rat-0.12
4 changes: 2 additions & 2 deletions docker/install/ubuntu_install_vulkan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
# 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
Expand Down
3 changes: 3 additions & 0 deletions docs/api/python/topi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ List of operators
topi.tanh
topi.log
topi.sqrt
topi.rsqrt
topi.sigmoid
topi.clip
topi.cast
Expand All @@ -56,6 +57,7 @@ List of operators
topi.nn.dilate
topi.nn.pool
topi.nn.global_pool
topi.nn.adaptive_pool
topi.nn.upsampling
topi.nn.softmax
topi.nn.dense
Expand Down Expand Up @@ -122,6 +124,7 @@ topi
.. autofunction:: topi.tanh
.. autofunction:: topi.log
.. autofunction:: topi.sqrt
.. autofunction:: topi.rsqrt
.. autofunction:: topi.sigmoid
.. autofunction:: topi.clip
.. autofunction:: topi.cast
Expand Down
4 changes: 2 additions & 2 deletions docs/contribute/code_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Code Guide and Tips
===================

This is a document used to record tips in tvm codebase for reviewers and contributors.
This is a document used to record tips in TVM codebase for reviewers and contributors.
Most of them are summarized through lessons during the contributing and process.


Expand All @@ -42,7 +42,7 @@ Python Code Styles

Handle Integer Constant Expression
----------------------------------
We often need to handle constant integer expressions in tvm. Before we do so, the first question we want to ask is that is it really necessary to get a constant integer. If symbolic expression also works and let the logic flow, we should use symbolic expression as much as possible. So the generated code works for shapes that are not known ahead of time.
We often need to handle constant integer expressions in TVM. Before we do so, the first question we want to ask is that is it really necessary to get a constant integer. If symbolic expression also works and let the logic flow, we should use symbolic expression as much as possible. So the generated code works for shapes that are not known ahead of time.

Note that in some cases we cannot know certain information, e.g. sign of symbolic variable, it is ok to make assumptions in certain cases. While adding precise support if the variable is constant.

Expand Down
Loading