mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

make error

Open aigaolc opened this issue 11 years ago • 1 comments

there is an error when update to master. (mac osx clang) thanks.

In file included from src/operator/embedding.cc:8: src/operator/./embedding-inl.h:60:11: error: use of undeclared identifier 'take' out = take(data, wmat); ^ src/operator/./embedding-inl.h:42:12: note: in instantiation of member function 'mxnet::op::EmbeddingOpmshadow::cpu::Forward' requested here explicit EmbeddingOp(EmbeddingParam p) { ^ src/operator/embedding.cc:13:14: note: in instantiation of member function 'mxnet::op::EmbeddingOpmshadow::cpu::EmbeddingOp' requested here return new EmbeddingOp(param); ^ In file included from src/operator/embedding.cc:8: src/operator/./embedding-inl.h:81:15: error: use of undeclared identifier 'take_grad' grad_in = take_grad(data, grad_out, param_.input_dim); ^ src/operator/./embedding-inl.h:42:12: note: in instantiation of member function 'mxnet::op::EmbeddingOpmshadow::cpu::Backward' requested here explicit EmbeddingOp(EmbeddingParam p) { ^ src/operator/embedding.cc:13:14: note: in instantiation of member function 'mxnet::op::EmbeddingOpmshadow::cpu::EmbeddingOp' requested here return new EmbeddingOp(param); ^

aigaolc avatar Nov 24 '15 11:11 aigaolc

It seems that you have to update your mshadow code. The newest mshadow added function "take" and "take_grad" In git, type commands below " git submodule init git submodule update " Hope this will help

yang1fan2 avatar Nov 24 '15 15:11 yang1fan2