摘要: (一)detach import torcha = torch.tensor([1, 2, 3.], requires_grad=True) out = a.sigmoid() c = out.detach() 1.c和out指向同一个内存,但是c将requires_grad变为False。 2.当 阅读全文
posted @ 2023-10-24 11:01 逆袭成功的swift 阅读(38) 评论(0) 推荐(0)