On-the-fly Operation Batching in Dynamic Computation Graphs