hpi-xnor / BMXNet

(New version is out: https://github.com/hpi-xnor/BMXNet-v2) BMXNet: An Open-Source Binary Neural Network Implementation Based on MXNet
Apache License 2.0
350 stars 95 forks source link

segv on QFullyConnected with one bit and one or two outputs. #29

Closed analog-cbarber closed 5 years ago

analog-cbarber commented 6 years ago
>>> mx.ndarray.QFullyConnected(data=mx.ndarray.ones((1,64)), weight=mx.ndarray.ones((2,64)), 
                                            num_hidden=2, act_bit=1, weight_bit=1)
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

This is a Mac OSX build with USE_CUDA=OFF and USE_OPENMP=OFF

yanghaojin commented 6 years ago

Hi, I cannot reproduce your issue

>>> mx.ndarray.QFullyConnected(data=mx.ndarray.ones((1,64)), weight=mx.ndarray.ones((2,64)),num_hidden=2, act_bit=1, weight_bit=1) 
[[ 62. 61.]] <NDArray 1x2 @cpu(0)>
analog-cbarber commented 6 years ago

I will try to get a stack dump if I have time.