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

[Bug] ModuleNotFoundError: No module named 'vta' #17473

Open
197895 opened this issue Oct 18, 2024 · 0 comments
Open

[Bug] ModuleNotFoundError: No module named 'vta' #17473

197895 opened this issue Oct 18, 2024 · 0 comments
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug

Comments

@197895
Copy link

197895 commented Oct 18, 2024

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?

@197895 197895 added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug
Projects
None yet
Development

No branches or pull requests

1 participant