bob.learn.mlp.Machine.__repr__ crashes
Created by: siebenkopf
The __repr__ method of bob.learn.mlp.Machine crashes, throughout. Try:
>>> import bob.learn.mlp
>>> m = bob.learn.mlp.Machine((1,1,1))
>>> print (m)
The reason is that the PyBobLearnMLPMachine_Repr method:
https://github.com/bioidiap/bob.learn.mlp/blob/master/bob/learn/mlp/machine.cpp#L702
expects the PyBobLearnMLPMachine_getWeights to return a PyBlitzArray_Object*, while it actually returns a tuple:
https://github.com/bioidiap/bob.learn.mlp/blob/master/bob/learn/mlp/machine.cpp#L261
Hence, NULL is passed to make_safe, which crashes with a SEGFAULT.