galsang / BiDAF-pytorch

Re-implementation of BiDAF(Bidirectional Attention Flow for Machine Comprehension, Minjoon Seo et al., ICLR 2017) on PyTorch.
244 stars 85 forks source link

can't optimize a non-leaf Tensor #27

Open Xilixili opened 3 years ago

Xilixili commented 3 years ago

Thanks for your sharing. but I encounter an error as follow,and this error arises when putting parameters into the optimizer Could you help me to resolve this problem. Thanks!!! image image

Humanpaladin commented 2 years ago

I also encountered this error. Have you solved this problem? Thanks.

Humanpaladin commented 2 years ago

Well, I think I have solved the problem. check out the versions of torch, numpy, and others. Here is a version list which makes the program works. versions

stainswei commented 2 years ago

Thank you, i have solved it.

---Original--- From: @.> Date: Tue, Dec 14, 2021 11:16 AM To: @.>; Cc: @.***>; Subject: Re: [galsang/BiDAF-pytorch] can't optimize a non-leaf Tensor (#27)

Well, I think I have solved the problem. check out the versions of torch, numpy, and others. Here is a version list which makes the program works.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.