torch &pytorch

pytorch  是python 版的torch,底层大部分是C++ 语言。依靠nvidia cudnn、Intel MKL和NNPACK来加速。

torch 是用lua语言写的。低层使用C语言写的。

因为pytorch的设计bug原因,在pytorch中使用.c.cu文件时时,需要首先编译一下.cu然后将编译好的.cu包含在路径中和.c一起再用cffi进行编译才能使用。

 

你可能感兴趣的:(torch &pytorch)