TensorNet icon indicating copy to clipboard operation
TensorNet copied to clipboard

Undefined function or variable 'vl_testder' Error in vl_test_ttlayers (line 73)

Open submagr opened this issue 9 years ago • 1 comments

Hi, I am new to matlab. When I tried to run vl_test_ttlayers, I got the following error:

testing the CPU code
test number 1
Testing vl_nntt_* with the identity TT-matrix.
Undefined function or variable 'vl_testder'.

Error in vl_test_ttlayers (line 73)
          vl_testder(@(w) vl_nntt_forward_weights(layer, in, out, iGroup, w), layer.weights{iGroup}, out.dzdx, in.dzdw{iGroup}, range * 1e-2);

Can somebody help me with above error ?

submagr avatar Nov 15 '16 12:11 submagr

Hi Shubham,

I'm terribly sorry for a ridiculously long answer.

vl_testder is defined in the MatConvNet framework which you have to install to use this code.

Or more precisely it was defined in MatConvNet (see here) -- it seems that MatConvNet has gone a long way since then and my code was never updated to match these changes. So you basically have 2 options: to install MatConvNet version of around the end of 2015, or to use TensorFlow implementation of TensorNet which is hopefully up-to-date (if it's not, I'll fix that).

Hope this is useful at least someone and please don't hesitate to ask if you need help with something else, I'll do my best to not to delay the responce this much again.

Bihaqo avatar Apr 16 '17 14:04 Bihaqo