The code is based on the upcoming NIPS paper: "Expectation Backpropagation: Parameter-Free Training of Multilayer Neural Networks with Continuous or Discrete Weight."