The error message suggests that there is a dimension mismatch in the input data. The input size of the GRU layer is expected to be 42, but it received an input with size 1.

To fix this issue, you need to check the dimensions of the input data and make sure it matches the expected input size of the GRU layer. You may need to reshape or adjust the input data before passing it to the GRU layer.

Dsoft_installanaconda3envspytorchpythonexe DFiles_for_allDeep-Learning-Image-Classification-Models-Based-CNN-or-Attention-mainbert_demodemo2py Traceback most recent call last File DFiles_for_allDeep-

原文地址: https://www.cveoy.top/t/topic/jdlS 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录