fix SequentialCell doc

pull/2949/head
jiangjinsheng 5 years ago
parent 30b0650349
commit 52e280f36a

@ -69,7 +69,7 @@ class SequentialCell(Cell):
Alternatively, an ordered dict of cells can also be passed in.
Args:
args (list, optional): List of subclass of Cell.
args (list, OrderedDict): List of subclass of Cell.
Raises:
TypeError: If arg is not of type list or OrderedDict.

@ -587,7 +587,7 @@ class GroupNorm(Cell):
"""calculate groupnorm output"""
batch, channel, height, width = self.shape(x)
_channel_check(channel, self.num_channels)
x = self.reshape(x, (batch, self.num_groups, channel*height*width/self.num_groups))
x = self.reshape(x, (batch, self.num_groups, -1))
mean = self.reduce_mean(x, 2)
var = self.reduce_sum(self.square(x - mean), 2) / (channel * height * width / self.num_groups - 1)
std = self.sqrt(var + self.eps)

Loading…
Cancel
Save