会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
June
Better to run than curse the road. 与其感慨前路难行,不如马上出发
博客园
首页
新随笔
联系
订阅
管理
2022年9月5日
torch.repeat()
摘要: PyTorch中的repeat()函数可以对张量进行重复扩充。 >>> a= torch.arange(24).reshape(1,2,3,4) >>> print(a.size()) torch.Size([1, 2, 3, 4]) >>> print("b.size",a.repeat(2,2,
阅读全文
posted @ 2022-09-05 17:19 魏晋南北朝
阅读(453)
评论(0)
推荐(0)
公告