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

Exception: FastGRNNCUDA is supported only on GPU devices. #232

Closed
mehreenjabeen opened this issue Mar 21, 2021 · 6 comments
Closed

Exception: FastGRNNCUDA is supported only on GPU devices. #232

mehreenjabeen opened this issue Mar 21, 2021 · 6 comments

Comments

@mehreenjabeen
Copy link

Getting error "Exception: FastGRNNCUDA is supported only on GPU devices." upon running kws-demo.py

@ShikharJ
Copy link
Contributor

@mehreenjabeen I'm assuming your system has a GPU setup? Can you provide the sample command you ran and the full output?

@mehreenjabeen
Copy link
Author

i ran this command: "python kws_demo.py --config_path <path_to_config.json> --model_path <path_to_model.pt> --mean_path <path_to_mean.npy> --std_path <path_to_std.npy>"
However, I had trained the model with architecture argument set as "-architecture FastGRNNCUDA". Now I am retraining with architecture parameter set to FastGRNN. Hope that resolves the issue

@mehreenjabeen
Copy link
Author

the above thing didnt work(i.e chaging architecture from FastGRNNCUDA to FastGRNN )
So command i ran "python3 kws-demo.py --config_path /home/mehreen/Work/EdgeML/EdgeML/config.json --model_path /home/mehreen/Work/EdgeML/EdgeML/examples/pytorch/FastCells/KWS-training/model/FastGRNN128KeywordSpotter.pt --mean_path $MODEL_DIR/mean.npy --std_path $MODEL_DIR/std.npy"

Output:
sigmoid tanh
Traceback (most recent call last):
File "kws-demo.py", line 202, in
fastgrnn = create_model(config.model, num_filt, 35)
File "/home/mehreen/Work/EdgeML/EdgeML/examples/pytorch/FastCells/KWS-training/train_classifier.py", line 420, in create_model
model_config.update_nonlinearity, num_keywords)
File "/home/mehreen/.local/lib/python3.6/site-packages/edgeml_pytorch/trainer/fastmodel.py", line 59, in init
for l in range(self.num_layers)])
File "/home/mehreen/.local/lib/python3.6/site-packages/edgeml_pytorch/trainer/fastmodel.py", line 59, in
for l in range(self.num_layers)])
File "/home/mehreen/.local/lib/python3.6/site-packages/edgeml_pytorch/graph/rnn.py", line 1121, in init
raise Exception('FastGRNNCUDA is supported only on GPU devices.')
Exception: FastGRNNCUDA is supported only on GPU devices.

@ShikharJ
Copy link
Contributor

@MJ10 Can you please take a look at this?

@ShikharJ
Copy link
Contributor

@MJ10 Ping

@mehreenjabeen
Copy link
Author

I am closing this issue as I got to know what the issue was. In config.json the model architecture was set to FastGRNNCuda because of which it was throwing the error. I changed it to Fastgrnn and it worked!

This issue was closed.
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

2 participants