(原)lua及torch中的type

转载请注明出处:

http://www.cnblogs.com/darkknightzh/p/6591641.html

说明:本文不一定正确。。。

如果要是variable:type(),则返回torch.FloatTensor等类型

如果要是type(variable),则返回变量的类型,如userdata等

原文地址:https://www.cnblogs.com/darkknightzh/p/6591641.html