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

Unhashable type: dict #376

Open
YROH-uni opened this issue Nov 29, 2021 · 0 comments
Open

Unhashable type: dict #376

YROH-uni opened this issue Nov 29, 2021 · 0 comments

Comments

@YROH-uni
Copy link

YROH-uni commented Nov 29, 2021

2021-11-29 00:58:19,476 INFO Found libdlr.so in model artifact. Using dlr from r esnet50/libdlr.so
2021-11-29 00:58:19,493 ERROR error in DLRModel instantiation unhashable type: ' dict'
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.9/site-packages/dlr/api.py", line 85, in i nit
self.impl = DLRModelImpl(model_path, dev_type, dev_id, error_log_file, use default_dlr)
File "/home/pi/.local/lib/python3.9/site-packages/dlr/dlr_model.py", line 104, in init
c_int(device_table[dev_type]),
TypeError: unhashable type: 'dict'
Traceback (most recent call last):
File "/home/pi/resnet.py", line 10, in
model = DLRModel('resnet50', input_shape, output_shape, device)
File "/home/pi/.local/lib/python3.9/site-packages/dlr/counter/phone_home.py", line 192, in callback
resp = func(*args, **kwargs)
File "/home/pi/.local/lib/python3.9/site-packages/dlr/api.py", line 88, in i nit
raise ex
File "/home/pi/.local/lib/python3.9/site-packages/dlr/api.py", line 85, in i nit
self.impl = DLRModelImpl(model_path, dev_type, dev_id, error_log_file, use default_dlr)
File "/home/pi/.local/lib/python3.9/site-packages/dlr/dlr_model.py", line 104, in init
c_int(device_table[dev_type]),
TypeError: unhashable type: 'dict

This is a capture of the code near line 104 of dlr_model.py.
resnet

Code to operate the optimized model.
This is an example provided on the AWS page.
dlr_modle py

I'm just downloading and turning the example, but I'm embarrassed because there's an error. Is there a solution?

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