Skip to content

Wenzha0Wu/vpex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VPEX

Vpu Pytorch EXtension

Install Pytorch

Pytorch >= 2.4 required. Cpu version could be downloaded from offical site.

pip3 install torch --index-url https://download.pytorch.org/whl/cpu

Dependencies

  • Python 3.8 or later.
  • GCC 9.4.0 or newer is required.
  • CMake 3.18 or later.
pip3 install cmake
  • Optional: Ninja build tool
pip3 install ninja

Build

cd vpex
mkdir build
cd build
export TORCH_INSTALL_PATH=$(python -c "import os;import torch;print(os.path.dirname(os.path.realpath(torch.__file__)))")
cmake -G Ninja -DCMAKE_PREFIX_PATH=${TORCH_INSTALL_PATH}/share/cmake ..
ninja

Test

cd vpex
export PYTHONPATH=$PWD/python
python test/test.py

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published