Efficient Learning of Discrete-Continuous Computation Graphs