Fix build for pytorch 0.4.1
THTensor is defined as an opaque data type, thus direct access to members is not possible anymore. Instead, use functions from C API to retrieve stride. Fixes #4
Showing
Please register or sign in to comment
THTensor is defined as an opaque data type, thus direct access to members is not possible anymore. Instead, use functions from C API to retrieve stride. Fixes #4