How to understand creating leaf tensors in PyTorch?

前端 未结 0 1259
庸人自扰
庸人自扰 2020-12-15 14:50

From PyTorch docs:

b = torch.rand(10, requires_grad=True).cuda()
b.is_leaf
False
# b was created by the operation that cast a cpu Tensor into a cuda Tensor

e         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题