fix typo in cosmargin

pull/1034/head
cuicheng01 2021-07-13 07:54:29 +00:00
parent a0941fb44a
commit c965193f36
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class CosMargin(paddle.nn.Layer):
input_norm = paddle.sqrt(
paddle.sum(paddle.square(input), axis=1, keepdim=True))
input = paddle.divide(input, x_norm)
input = paddle.divide(input, input_norm)
weight = self.fc.weight
weight_norm = paddle.sqrt(