Commit d0cbf94f by Tianqi Chen Committed by GitHub

[REFACTOR] examples->apps (#210)

parent 34d2aae3
# TVM Application Extensions
This folder contains various extension projects using TVM,
they also serve as examples on how to use TVM in your own project.
If you are interested in writing optimized kernels with TVM, checkout [TOPI: TVM Operator Inventory](../topi).
- [extension](extension) How to extend TVM C++ api along with python API.
- [graph_executor](graph_executor) Build nnvm graph executor with TVM.
TVM Examples
============
This folder contains various example projects using TVM.
- [extension](extension) how to extend TVM C++ api along with python API.
- [graph_executor](graph_executor) build graph executor.
- See also [topi](../topi) for operators and operator recipes.
#!/bin/bash
export PYTHONPATH=python:examples/extension/python
export PYTHONPATH=${PYTHONPATH}:examples/graph_executor/python:examples/graph_executor/nnvm/python
export PYTHONPATH=python:apps/extension/python
export PYTHONPATH=${PYTHONPATH}:apps/graph_executor/python:apps/graph_executor/nnvm/python
export LD_LIBRARY_PATH=lib:${LD_LIBRARY_PATH}
# Test TVM
make cython || exit -1
# Test extern package package
cd examples/extension
cd apps/extension
make || exit -1
cd ../..
python -m nose -v examples/extension/tests || exit -1
python -m nose -v apps/extension/tests || exit -1
# Test NNVM integration
cd examples/graph_executor
cd apps/graph_executor
make || exit -1
cd ../..
python -m nose -v examples/graph_executor/tests || exit -1
python -m nose -v apps/graph_executor/tests || exit -1
TVM_FFI=cython python -m nose -v tests/python/integration || exit -1
TVM_FFI=ctypes python3 -m nose -v tests/python/integration || exit -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment