Tensor.shape[0]的理解
Tensor.shape[0]的理解
初学python和pytorch,一直对Tensor.shape[0],Tensor.shape[1],Tensor.shape[2]Tensor.shape[0],Tensor.shape[1],Tensor.shape[2]Tensor.shape[0],Tensor.shape[1],Tensor.shape[2]等等的理解有疑惑。
对于torch.rand(3,4,5,..)这种超过二维的Tensor,shape[0]torch.rand(3,4,5,..)这种
原创
2021-01-09 20:55:03 ·
6282 阅读 ·
3 评论