Fork自 PaddlePaddle / Paddle
* change logic for optimize * modifty
* full api fix * when out is None, go old dygraph mode * by static check * first version: support 2-inputs forwards. TODO: 1. backward 2. BroadCast 3. MultiVariable * time out -> 120