摘要: import torch x = torch.tensor(2.,requires_grad=True) #requires_grad=True不能丢,因为默认是False,第一个参数一定得是float形式才能求导 w = torch.tensor(1.,requires_grad=True) b 阅读全文
posted @ 2020-04-20 16:22 地球上最后一个直男 阅读(374) 评论(0) 推荐(0) 编辑