- from 包(module) import 类 , import 包 前者使用的时候直接用类名即可,后者需要用包名.类名才可以使用
拼接一维的tensor:
x = torch.tensor([1,2,3])
y = torch.tensor([4,5,6])
x = x.unsqueeze(0)
y = y.unsqueeze(0)
z = torch.cat([x,y],dim=0)
读了《An Image is Worth 16x16 words, What is a Video Worth?》,写了weekly review
这篇博客探讨了如何使用PyTorch进行一维张量的拼接操作,通过`unsqueeze`和`cat`函数实现。同时,博主分享了阅读《An Image is Worth 16x16 Words, What is a Video Worth?》后的周报,讨论了视频理解领域的最新进展。

3386

被折叠的 条评论
为什么被折叠?



