turn dropout layer into in-place layer.
support inplace layers in Net.