MatthieuCourbariaux / BinaryNet

Training Deep Neural Networks with Weights and Activations Constrained to +1 or -1
BSD 3-Clause "New" or "Revised" License
1.04k stars 346 forks source link

binary_net.py syntax error #3

Closed Cyndilee closed 8 years ago

Cyndilee commented 8 years ago

Hi, I'm trying to run mnist.py. But there is SyntaxError in binary_net.py line 40. Any idea why does this error occur? BTW, I'm using Python 3.5.

Thanks.

MatthieuCourbariaux commented 8 years ago

Hi,

I suggest you try again with Python 2.7. instead of Python 3.5. Please tell me if the SyntaxError disappears.

Cheers,

Matthieu

jli05 commented 8 years ago

FYI you could run the command 2to3 to adapt Python 2.7 code to 3.5. Then you can hand fix remaining problems.

MatthieuCourbariaux commented 8 years ago

OK, thank you for the tip.

Matthieu

Cyndilee commented 8 years ago

Thanks all. I've fixed it by using Python 2.7.