.data()和.detach()都可以获取Variable内部的Tensor,但.detach()更加安全 https://zhuanlan.zhihu.com/p/38475183 转载于:https://www.cnblogs.com/Manuel/p/11077202.html