弱表(weak table)是一个很有意思的东西,像C/Java等语言是没有的。弱表的定义是:Aweak table is a table whose elements are weak references,元素为弱引用的表就叫弱表。有弱引用那么也就有强引用,有引用那么也就有非引用。我们先…
every blog every motto: You can do more than you think. https://blog.csdn.net/weixin_39190382?typeblog
0. 前言
记录torch.pairwise_distance
1. 一维
1.1 元素个数相同
1.1.1 元素个数为1
生成代码:
t torch.randn(1)
f torch.randn(1)计算代码,下…