Expanding tensor dimensions is important for machine learning. ... import torch x = torch.randn(16) x = x[None, :] x.shape # Expected result ...
確定! 回上一頁