pytorch layout切换方法

  

adj.to_dense().numpy()

可以吧稀疏矩阵换位dense模式.
原文地址:https://www.cnblogs.com/zhangbo2008/p/14618408.html