【笔记】python 中<class ‘torch.Tensor‘>(类似列表)做切片:内存共享

网上很多人说,list 在python 中做切片处理的时候,不会共享内存,并且做出了一些程序展示。

我经过实践,发现在pytorch中,class  torch.Tensor 的列表做切片处理,内存是共享的。

猜你喜欢

转载自blog.csdn.net/nyist_yangguang/article/details/120851601