-
Notifications
You must be signed in to change notification settings - Fork 637
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
[Speedster] Optimization failed with PytorchBackendCompiler #341
Comments
Hello @nemeziz69, thank you for your interest in speedster! Which data loader are you using? If it's a custom one, can you provide the implementation of the |
Hi @valeriosofi , DataLoader is not custom, it's directly from torch.
However, my dataset is custom. Here the full implementation:
|
Hi @nemeziz69, I tried with your code and unfortunately I can't reproduce your error. I've performed a few minor changes to run the code on my local env, at the end the dataloader outputs tensors of shape
|
Hi @valeriosofi, I'm confirm my speedster version is However, when I used the same model like yours which is So, I assume there's something wrong in my model input. FYI, I used custom pretrained model which is training output from this blog. |
May I know what is the reason behind the warning message?
FYI, my input data is Pytorch Dataloader, which was constructed in tensor.
2023-05-12 16:16:31 | INFO | [1/2] Running PyTorch Optimization Pipeline
2023-05-12 16:16:31 | INFO | Optimizing with PytorchBackendCompiler and q_type: None.
2023-05-12 16:16:33 | WARNING | Optimization failed with DeepLearningFramework.PYTORCH interface of ModelCompiler.TORCHSCRIPT. Got error 'list' object has no attribute 'to'. If possible the compilation will be re-scheduled with another interface. Please consult the documentation for further info or open an issue on GitHub for receiving assistance.
2023-05-12 16:16:33 | INFO | Optimizing with PytorchBackendCompiler and q_type: QuantizationType.HALF.
2023-05-12 16:16:35 | WARNING | Optimization failed with DeepLearningFramework.PYTORCH interface of ModelCompiler.TORCHSCRIPT. Got error 'list' object has no attribute 'to'. If possible the compilation will be re-scheduled with another interface. Please consult the documentation for further info or open an issue on GitHub for receiving assistance.
The text was updated successfully, but these errors were encountered: