You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try installing 'getParamsByDevice' Branch and get following error:
In file included from generic/SparseLinear.c:1:0,
from /home/mqhuang/torch/install/include/TH/THGenerateFloatTypes.h:10,
from /home/mqhuang/torch/nn/lib/THNN/init.c:83:
/home/mqhuang/torch/nn/lib/THNN/generic/SparseLinear.c: In function ‘THNN_FloatSparseLinear_accGradParameters’:
/home/mqhuang/torch/nn/lib/THNN/generic/SparseLinear.c:228:3: error: too few arguments to function ‘THFloatTensor_sum’
THTensor_(sum)(buf, gradOutput, 0);
^
In file included from /home/mqhuang/torch/install/include/TH/TH.h:4:0,
from /home/mqhuang/torch/nn/lib/THNN/init.c:1:
/home/mqhuang/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/home/mqhuang/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/home/mqhuang/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/home/mqhuang/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
^
In file included from generic/SparseLinear.c:1:0,
from /home/mqhuang/torch/install/include/TH/THGenerateFloatTypes.h:11,
from /home/mqhuang/torch/nn/lib/THNN/init.c:83:
/home/mqhuang/torch/nn/lib/THNN/generic/SparseLinear.c: In function ‘THNN_DoubleSparseLinear_accGradParameters’:
/home/mqhuang/torch/nn/lib/THNN/generic/SparseLinear.c:228:3: error: too few arguments to function ‘THDoubleTensor_sum’
THTensor_(sum)(buf, gradOutput, 0);
^
In file included from /home/mqhuang/torch/install/include/TH/TH.h:4:0,
from /home/mqhuang/torch/nn/lib/THNN/init.c:1:
/home/mqhuang/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/home/mqhuang/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/home/mqhuang/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/home/mqhuang/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
Thanks for the help.
The text was updated successfully, but these errors were encountered:
Hello,
I try installing 'getParamsByDevice' Branch and get following error:
In file included from generic/SparseLinear.c:1:0,
from /home/mqhuang/torch/install/include/TH/THGenerateFloatTypes.h:10,
from /home/mqhuang/torch/nn/lib/THNN/init.c:83:
/home/mqhuang/torch/nn/lib/THNN/generic/SparseLinear.c: In function ‘THNN_FloatSparseLinear_accGradParameters’:
/home/mqhuang/torch/nn/lib/THNN/generic/SparseLinear.c:228:3: error: too few arguments to function ‘THFloatTensor_sum’
THTensor_(sum)(buf, gradOutput, 0);
^
In file included from /home/mqhuang/torch/install/include/TH/TH.h:4:0,
from /home/mqhuang/torch/nn/lib/THNN/init.c:1:
/home/mqhuang/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/home/mqhuang/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/home/mqhuang/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/home/mqhuang/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
^
In file included from generic/SparseLinear.c:1:0,
from /home/mqhuang/torch/install/include/TH/THGenerateFloatTypes.h:11,
from /home/mqhuang/torch/nn/lib/THNN/init.c:83:
/home/mqhuang/torch/nn/lib/THNN/generic/SparseLinear.c: In function ‘THNN_DoubleSparseLinear_accGradParameters’:
/home/mqhuang/torch/nn/lib/THNN/generic/SparseLinear.c:228:3: error: too few arguments to function ‘THDoubleTensor_sum’
THTensor_(sum)(buf, gradOutput, 0);
^
In file included from /home/mqhuang/torch/install/include/TH/TH.h:4:0,
from /home/mqhuang/torch/nn/lib/THNN/init.c:1:
/home/mqhuang/torch/install/include/TH/THTensor.h:8:39: note: declared here
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/home/mqhuang/torch/install/include/TH/THGeneral.h:116:37: note: in definition of macro ‘TH_CONCAT_4_EXPAND’
#define TH_CONCAT_4_EXPAND(x,y,z,w) x ## y ## z ## w
^
/home/mqhuang/torch/install/include/TH/THTensor.h:8:27: note: in expansion of macro ‘TH_CONCAT_4’
#define THTensor_(NAME) TH_CONCAT_4(TH,Real,Tensor_,NAME)
^
/home/mqhuang/torch/install/include/TH/generic/THTensorMath.h:79:13: note: in expansion of macro ‘THTensor_’
TH_API void THTensor_(sum)(THTensor *r_, THTensor *t, int dimension, int keepdim);
Thanks for the help.
The text was updated successfully, but these errors were encountered: