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

TypeError: 'IntImm' object cannot be interpreted as an integer #234

Open
SlowMonk opened this issue May 14, 2024 · 0 comments
Open

TypeError: 'IntImm' object cannot be interpreted as an integer #234

SlowMonk opened this issue May 14, 2024 · 0 comments

Comments

@SlowMonk
Copy link

Device: JetsonNano
OS: ubuntu 22.04

File "/home/surromind/swe/temporal-shift-module/online_demo/main.py", line 389, in
main()

  File "/home/temporal-shift-module/online_demo/main.py", line 285, in main
    executor, ctx = get_executor()

  File "/home/temporal-shift-module/online_demo/main.py", line 99, in get_executor
    return torch2executor(torch_module, torch_inputs, target)

  File "/home/temporal-shift-module/online_demo/main.py", line 55, in torch2executor
    graph, tvm_module, params = torch2tvm_module(torch_module, torch_inputs, target)

  File "/home/temporal-shift-module/online_demo/main.py", line 40, in torch2tvm_module
    graph, tvm_module, params = tvm.relay.build(relay_module, target, params=params)

  File "/home/venv/lib/python3.10/site-packages/tvm-0.6.0-py3.10-linux-aarch64.egg/tvm/relay/build_module.py", line 248, in build
    graph_json, mod, params = bld_mod.build(func, target, target_host, params)

  File "/home/venv/lib/python3.10/site-packages/tvm-0.6.0-py3.10-linux-aarch64.egg/tvm/relay/build_module.py", line 107, in build
    target = _update_target(target)

  File "/home/venv/lib/python3.10/site-packages/tvm-0.6.0-py3.10-linux-aarch64.egg/tvm/relay/build_module.py", line 49, in _update_target
    dev_type = _nd.context(dev).device_type

  File "/home/venv/lib/python3.10/site-packages/tvm-0.6.0-py3.10-linux-aarch64.egg/tvm/_ffi/ndarray.py", line 82, in context
    return TVMContext(dev_type, dev_id)

  File "/home/venv/lib/python3.10/site-packages/tvm-0.6.0-py3.10-linux-aarch64.egg/tvm/_ffi/runtime_ctypes.py", line 170, in __init__
    self.device_type = device_type

TypeError: 'IntImm' object cannot be interpreted as an integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant