会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
e-yii
博客园
首页
新随笔
联系
订阅
管理
2021年9月26日
torch.cat()的类型转换
摘要: torch.cat((TensorA,TensorB))在连接两个不同类型的Tensor的时候会发生类型转换,转换表如下 表的行列按照优先级排列 需要注意的是这个优先级可能会导致数据的溢出,如 [In] torch.cat((torch.LongTensor([1<<31]),torch.HalfT
阅读全文
posted @ 2021-09-26 19:41 e-yi
阅读(0)
评论(0)
推荐(0)
编辑
公告