我们需要先调用attach_grad函数来申请存储梯度所需要的内存。
本文标题:x.attach_grad()
本文链接:https://www.haomeiwen.com/subject/hkxpjhtx.html
网友评论