torch.tensor默认requires_grad=False

torch.tensor(datadtype=Nonedevice=Nonerequires_grad=Falsepin_memory=False) → Tensor

torch.zeros(*sizeout=Nonedtype=Nonelayout=torch.strideddevice=Nonerequires_grad=False) → Tensor

torch.ones(*sizeout=Nonedtype=Nonelayout=torch.strideddevice=Nonerequires_grad=False) → Tensor

 

posted on 2020-06-23 17:00  那抹阳光1994  阅读(3659)  评论(0编辑  收藏  举报

导航