-
Notifications
You must be signed in to change notification settings - Fork 11
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
assert runtime is not None in example.py #1
Comments
Hi, could you provide which system and device you are using so that I can figure out what is happening? Also, you could try the example in Colab first. This should work. |
Hi @lmxyy , Thank you! |
Hi @lmxyy , The interactive session results are shown below:
However, I tried to run the example.py again and encountered the same error. Thank you! |
This looks weird as you could import the package. Could you hack the package source code in for device in self.devices:
name = "sige.%s" % device
try:
module = importlib.import_module(name)
runtime = getattr(module, function_name)
runtime_dict[device] = runtime
except (ModuleNotFoundError, AttributeError) as err:
runtime_dict[device] = None
print('!!!name: %s device: %s' % (name, device))
print('@@@Error message: %s' % err) I would like to know what caused your import fail. |
Hi @lmxyy ,
Thank you so much for your awesome work!
It is a very interesting topic, and I tried to run the example.py.
However, It was not successful. Could you help give me some advice?
Traceback (most recent call last):
File "/xx/sige-main/example.py", line 98, in
main()
File "/xx/sige-main/example.py", line 87, in main
sige_output = model(edited_input)
File "/xx/anaconda2/envs/pt1.7/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/xx/sige-main/example.py", line 47, in forward
return self.example_module(x)
File "/xx/anaconda2/envs/pt1.7/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/xx/sige-main/example.py", line 33, in forward
x = self.gather(x)
File "/xx/anaconda2/envs/pt1.7/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/xx/sige-main/sige/nn/gather.py", line 79, in forward
assert runtime is not None
AssertionError
Thanks!
The text was updated successfully, but these errors were encountered: