Created by: guoshengCS
Make layers.reshape/expand/slice in dygraph support var inputs. Make transpose support size 0.