摘要: **局部矩阵乘法** 参考:https://pytorch.org/docs/stable/generated/torch.bmm.html ![image](https://img2023.cnblogs.com/blog/3240132/202307/3240132-20230729221513 阅读全文
posted @ 2023-07-29 22:15 zz子木zz 阅读(35) 评论(0) 推荐(0) 编辑
摘要: ## torch.squeeze() **压缩大小为1的维度** 参考:https://pytorch.org/docs/stable/generated/torch.squeeze.html ![image](https://img2023.cnblogs.com/blog/3240132/202 阅读全文
posted @ 2023-07-29 17:56 zz子木zz 阅读(11) 评论(0) 推荐(0) 编辑
摘要: **返回张量的维数** ![image](https://img2023.cnblogs.com/blog/3240132/202307/3240132-20230729133036561-1258419327.png) 阅读全文
posted @ 2023-07-29 13:31 zz子木zz 阅读(12) 评论(0) 推荐(0) 编辑
摘要: **返回一个指定size的张量,元素是0~1之间的随机数** 参考: https://pytorch.org/docs/stable/generated/torch.rand.html ![image](https://img2023.cnblogs.com/blog/3240132/202307/ 阅读全文
posted @ 2023-07-29 13:25 zz子木zz 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 参考:https://pytorch.org/docs/stable/generated/torch.repeat_interleave.html ![image](https://img2023.cnblogs.com/blog/3240132/202307/3240132-20230729132 阅读全文
posted @ 2023-07-29 13:22 zz子木zz 阅读(19) 评论(0) 推荐(0) 编辑