muzairkhattak / multimodal-prompt-learning

[CVPR 2023] Official repository of paper titled "MaPLe: Multi-modal Prompt Learning".
https://muzairkhattak.github.io/multimodal-prompt-learning/
MIT License
635 stars 48 forks source link

RuntimeError: grad can be implicitly created only for scalar outputs #37

Closed fenglincong closed 1 year ago

fenglincong commented 1 year ago

Hi, can you help me solve it?

muzairkhattak commented 1 year ago

Hi @fenglincong,

Thank you for reaching out to us!

This error is most likely appearing due to the use of multiple GPUs for training. Can you kindly look into the issue#36, which has a fix for your issue?

Thank you!

fenglincong commented 1 year ago

Okay, thank you.