tensorlayer / TensorLayer

Deep Learning and Reinforcement Learning Library for Scientists and Engineers
http://tensorlayerx.com
Other
7.33k stars 1.61k forks source link

Refactor batch normalization #1040

Closed ChrisWu1997 closed 5 years ago

ChrisWu1997 commented 5 years ago

Checklist

Motivation and Context

Support BatchNorm1d with 2D input.

Description

After refactoring, BatchNorm1d/BatchNorm2d/BatchNorm3d is basically no different from BatchNorm, except they are limited to certain input shape while BatchNorm works for all shape(at least 2D).