Browse Source

update examples/face_adversarial_attack/example/loss_design.py.

Signed-off-by: 君君臣臣君 <mingjun@isrc.iscas.ac.cn>
pull/416/head
君君臣臣君 Gitee 3 years ago
parent
commit
e012b5b06d
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/face_adversarial_attack/example/loss_design.py

+ 1
- 1
examples/face_adversarial_attack/example/loss_design.py View File

@@ -80,7 +80,7 @@ class FaceLossTargetAttack(nn.Cell):
"""The loss function of the target attack"""

def __init__(self, target_emb):
super(FaceLossTargeTattack, self).__init__()
super(FaceLossTargetAttack, self).__init__()
self.uniformreal = ops.UniformReal(seed=2)
self.sum = ops.ReduceSum(keep_dims=False)
self.norm = nn.Norm(keep_dims=True)


Loading…
Cancel
Save