fix doc problems

This commit is contained in:
zhaojichen 2020-04-26 23:49:17 -04:00
parent 4a79dde736
commit e49cd12d92
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ class _BatchNorm(Cell):
def extend_repr(self):
return 'num_features={}, eps={}, momentum={}, gamma={}, beta={}, moving_mean={}, moving_variance={}'.format(
self.num_features, self.eps, self.momentum, self.gamma, self.beta, self.moving_mean, self.moving_variance)
@constexpr
def _channel_check(channel, num_channel):
if channel != num_channel:
raise ValueError("the input channel is not equal with num_channels")