aehrc / cvt2distilgpt2

Improving Chest X-Ray Report Generation by Leveraging Warm-Starting
GNU General Public License v3.0
64 stars 6 forks source link

How to get gradient #19

Open zhangyinglu opened 1 month ago

zhangyinglu commented 1 month ago

Can we get gradient in the test stage? when test_mimic_cxr_chen_cvt2distilgpt2, how can I get the gradient?The Image features requires_grad always shows 'False'.