(原)lua及torch中的type

转载请注明出处:

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

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

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

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

posted on 2017-03-20 21:15  darkknightzh  阅读(836)  评论(0编辑  收藏  举报

导航