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

clstm.i and clstm.h are not in sync #40

Closed
futurely opened this issue Sep 29, 2015 · 7 comments
Closed

clstm.i and clstm.h are not in sync #40

futurely opened this issue Sep 29, 2015 · 7 comments

Comments

@futurely
Copy link

clstm_wrap.cpp:11671:21: error: ‘struct ocropus::INetwork’ has no member named ‘d_inputs’
   if (arg1) (arg1)->d_inputs = *arg2;
                     ^
clstm_wrap.cpp: In function ‘PyObject* _wrap_INetwork_d_inputs_get(PyObject*, PyObject*)’:
clstm_wrap.cpp:11705:35: error: ‘struct ocropus::INetwork’ has no member named ‘d_inputs’
   result = (Sequence *)& ((arg1)->d_inputs);
                                   ^
clstm_wrap.cpp: In function ‘PyObject* _wrap_INetwork_d_outputs_set(PyObject*, PyObject*)’:
clstm_wrap.cpp:11823:21: error: ‘struct ocropus::INetwork’ has no member named ‘d_outputs’
   if (arg1) (arg1)->d_outputs = *arg2;
                     ^
clstm_wrap.cpp: In function ‘PyObject* _wrap_INetwork_d_outputs_get(PyObject*, PyObject*)’:
clstm_wrap.cpp:11857:35: error: ‘struct ocropus::INetwork’ has no member named ‘d_outputs’
   result = (Sequence *)& ((arg1)->d_outputs);
                                   ^
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
clstm_wrap.cpp: In function ‘PyObject* _wrap_INetwork_d_inputs_set(PyObject*, PyObject*)’:
clstm_wrap.cpp:11671:21: error: ‘struct ocropus::INetwork’ has no member named ‘d_inputs’
   if (arg1) (arg1)->d_inputs = *arg2;
                     ^
clstm_wrap.cpp: In function ‘PyObject* _wrap_INetwork_d_inputs_get(PyObject*, PyObject*)’:
clstm_wrap.cpp:11705:35: error: ‘struct ocropus::INetwork’ has no member named ‘d_inputs’
   result = (Sequence *)& ((arg1)->d_inputs);
                                   ^
clstm_wrap.cpp: In function ‘PyObject* _wrap_INetwork_d_outputs_set(PyObject*, PyObject*)’:
clstm_wrap.cpp:11823:21: error: ‘struct ocropus::INetwork’ has no member named ‘d_outputs’
   if (arg1) (arg1)->d_outputs = *arg2;
                     ^
clstm_wrap.cpp: In function ‘PyObject* _wrap_INetwork_d_outputs_get(PyObject*, PyObject*)’:
clstm_wrap.cpp:11857:35: error: ‘struct ocropus::INetwork’ has no member named ‘d_outputs’
   result = (Sequence *)& ((arg1)->d_outputs);
                                   ^
@futurely
Copy link
Author

This also means clstmimg.cc is not used at all.
https://github.com/tmbdev/clstm/search?utf8=%E2%9C%93&q=d_inputs

@futurely
Copy link
Author

The Python wrapper can be built after deleting the d_inputs and d_outputs fields from INetwork in clstm.i. Then in IPython, running net.backward() outputs Kernel died, restarting.

@futurely
Copy link
Author

Adding d_inputs and d_outputs to the INetwork in both clstm.h and clstm.i still has the same problem.

@tmbdev
Copy link
Owner

tmbdev commented Oct 1, 2015

Yes, I'm in the middle of converting to Eigen::Tensor. I should probably have created a branch, but I had hoped it would go a bit quicker than it has.

Use tag a588c8 for now.

@futurely
Copy link
Author

futurely commented Oct 2, 2015

The tag is the same version that caused the above errors. The backward method can't run.

net.backward()

Kernel died, restarting

@tmbdev
Copy link
Owner

tmbdev commented Oct 2, 2015

Let me see whether I can track down an older working version and set up the branches so that that becomes the default branch.

@tmbdev
Copy link
Owner

tmbdev commented Oct 4, 2015

The Python swig code has been updated; there is a small test case (test-lstm.py) now.
There is also a separate branch now for the old version with separate derivatives.

@tmbdev tmbdev closed this as completed Oct 4, 2015
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