tvm
tvm copied to clipboard
[Bug] ModuleNotFoundError: No module named 'vta'
trafficstars
background
I want to use vta in tvm I follow the tutorial from official website,set these open
# Whether to build fast VTA simulator driver
set(USE_VTA_FSIM ON)
# Whether to build cycle-accurate VTA simulator driver
set(USE_VTA_TSIM ON)
# Whether to build VTA FPGA driver (device side only)
set(USE_VTA_FPGA ON)
and I build it ,got an error and fix it by this issue error is below:
[with Args = {}; T = vta::dpi::DPIModule]’:
/home/myubuntu/workspace/tvm/include/tvm/runtime/memory.h:72:26: required from ‘tvm::runtime::ObjectPtr<U> tvm::runtime::ObjAllocatorBase< <template-parameter-1-1> >::make_object(Args&& ...) [with T = vta::dpi::DPIModule; Args = {}; Derived = tvm::runtime::SimpleObjAllocator]’
/home/myubuntu/workspace/tvm/include/tvm/runtime/memory.h:196:45: required from ‘tvm::runtime::ObjectPtr<U> tvm::runtime::make_object(Args&& ...) [with T = vta::dpi::DPIModule; Args = {}]’
/home/myubuntu/workspace/tvm/3rdparty/vta-hw/src/dpi/module.cc:520:34: required from here
/home/myubuntu/workspace/tvm/include/tvm/runtime/memory.h:122:7: error: invalid new-expression of abstract class type ‘vta::dpi::DPIModule’
122 | new (data) T(std::forward<Args>(args)...);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/myubuntu/workspace/tvm/3rdparty/vta-hw/src/dpi/module.cc:274:7: note: because the following virtual functions are pure within ‘vta::dpi::DPIModule’:
274 | class DPIModule final : public DPIModuleNode {
| ^~~~~~~~~
and i install this to python3.9,using **pip install -e . **
bug
then i try to test vta sim:python <tvm root>/vta/tests/python/integration/test_benchmark_topi_conv2d.py
but got this:
import vta
ModuleNotFoundError: No module named 'vta'
the inclusion of test_benchmark_topi_conv2d is below:
from vta import program_fpga, reconfig_runtime
import vta.testing
from vta.testing import simulator
I also try to search program_fpga:find -iname program_fpga,but got nothing。 could you please give me any instruction?