change Q.BNTrainingReduce() to P.BNTrainingReduce()

This commit is contained in:
chenzomi 2020-06-20 15:22:35 +08:00
parent 11caa3aec8
commit 2fab2492bc
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class BatchNormFoldCell(Cell):
self.bn_train = Q.BatchNormFold(momentum, epsilon, is_training=True, freeze_bn=freeze_bn)
self.bn_infer = Q.BatchNormFold(momentum, epsilon, is_training=False, freeze_bn=freeze_bn)
else:
self.bn_reduce = Q.BNTrainingReduce()
self.bn_reduce = P.BNTrainingReduce()
self.bn_update = Q.BatchNormFoldD(momentum, epsilon, is_training=True, freeze_bn=freeze_bn)
def construct(self, x, mean, variance, global_step):