Skip to content

Commit 0eeee8c

Browse files
antinucleonBing Xu
authored andcommitted
[Python3] Update test
1 parent 9d4a9d7 commit 0eeee8c

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/relay/backend/graph_runtime_codegen.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ class GraphRuntimeCodegen
392392
<< "the fuse_ops transformation to the expression.";
393393
} else if (op->op.as<GlobalVarNode>()) {
394394
LOG(FATAL) << "Not implemented";
395-
// func = self.mod[call.op]
396395
} else if (op->op.as<FunctionNode>()) {
397396
func = GetRef<Function>(op->op.as<FunctionNode>());
398397
} else {

src/relay/backend/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ inline const PackedFunc* GetPackedFunc(const std::string& func_name) {
5656
* \param typ
5757
* \return std::string string format of type
5858
*/
59-
std::string DType2String(const tvm::Type typ) {
59+
inline std::string DType2String(const tvm::Type typ) {
6060
std::ostringstream os;
6161
auto tvm_type = Type2TVMType(typ);
6262
if (tvm_type.code == kDLFloat) {

src/relay/pass/pattern_util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <tvm/relay/expr.h>
3333
#include <tvm/relay/attrs/nn.h>
3434
#include <tvm/relay/attrs/transform.h>
35-
#include <tvm/relay/attrs/nn.h>
3635
#include <string>
3736

3837

tests/python/unittest/test_module_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def save_object(names):
8282
fo.write(runtime_py)
8383

8484
subprocess.check_call(
85-
"python %s %s %s" % (path_runtime_py, path_dso, dtype),
85+
"python3 %s %s %s" % (path_runtime_py, path_dso, dtype),
8686
shell=True)
8787

8888

tests/scripts/task_java_unittest.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ CURR_DIR=$(cd `dirname $0`; pwd)
2626
SCRIPT_DIR=$CURR_DIR/../../jvm/core/src/test/scripts
2727
TEMP_DIR=$(mktemp -d)
2828

29-
python $SCRIPT_DIR/test_add_cpu.py $TEMP_DIR
30-
python $SCRIPT_DIR/test_add_gpu.py $TEMP_DIR
31-
python $SCRIPT_DIR/test_graph_runtime.py $TEMP_DIR
29+
python3 $SCRIPT_DIR/test_add_cpu.py $TEMP_DIR
30+
python3 $SCRIPT_DIR/test_add_gpu.py $TEMP_DIR
31+
python3 $SCRIPT_DIR/test_graph_runtime.py $TEMP_DIR
3232

3333
# start rpc proxy server
3434
PORT=$(( ( RANDOM % 1000 ) + 9000 ))
35-
python $SCRIPT_DIR/test_rpc_proxy_server.py $PORT 30 &
35+
python3 $SCRIPT_DIR/test_rpc_proxy_server.py $PORT 30 &
3636

3737
make jvmpkg
3838
make jvmpkg JVM_TEST_ARGS="-DskipTests=false \

tests/scripts/task_python_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mv jvm/core/target/site/apidocs docs/_build/html/javadoc
4040
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
4141

4242
cd docs
43-
PYTHONPATH=`pwd`/../python3 make html
43+
PYTHONPATH=`pwd`/../python make html
4444
cd _build/html
4545
tar czf docs.tgz *
4646
mv docs.tgz ../../../

tests/scripts/task_python_integration.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ rm -rf lib
3333
make
3434
cd ../..
3535

36+
python3 -m nose -v apps/extension/tests
37+
3638
TVM_FFI=ctypes python3 -m nose -v tests/python/integration
3739
TVM_FFI=ctypes python3 -m nose -v tests/python/contrib
3840

tests/scripts/task_web_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
set -e
2020
set -u
2121

22-
export PYTHONPATH=python3
22+
export PYTHONPATH=python
2323

2424
cp /emsdk-portable/.emscripten ~/.emscripten
2525
source /emsdk-portable/emsdk_env.sh

0 commit comments

Comments
 (0)