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
349 stars 95 forks source link

mxnet error: redeclaration of 'kNone' when setting USE_CPP_PACKAGE = 1 #54

Closed iamweiweishi closed 5 years ago

iamweiweishi commented 5 years ago

Hi, I followed your setup instructions and could build the project successfully. But when I set USE_CPP_PACKAGE = 1, the error occurs:

default

The redeclaration looks like this: enum class QConvolutionScalingMode { kNone = 0, kBackward = 1, kForward = 2, kNone = 3 };

I tried to delete one 'kNone' in line 6866 of 'mxnet-cpp/op.h'. But the file seems to be generated by a wrapper. So the modification is useless. Any help would be greatly appreciated. Thank you.

yanghaojin commented 5 years ago

Hi, would you like to check the new branch of BMXNet, which support Gluon and latest MXNet version: https://github.com/hpi-xnor/BMXNet-v2