Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getParamsByDevice Branch problem #1293

Open
MikeChenfu opened this issue Oct 28, 2017 · 1 comment
Open

getParamsByDevice Branch problem #1293

MikeChenfu opened this issue Oct 28, 2017 · 1 comment

Comments

@MikeChenfu
Copy link

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.

@1LOVESJohnny
Copy link

Have you solved the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants