Browse Source

!57 fix issue

Merge pull request !57 from zheng-huanhuan/master
tags/v0.6.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
f4deb03c36
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      mindarmour/diff_privacy/mechanisms/mechanisms.py

+ 2
- 0
mindarmour/diff_privacy/mechanisms/mechanisms.py View File

@@ -225,6 +225,8 @@ class NoiseAdaGaussianRandom(NoiseGaussianRandom):
""" """
Adaptive Gaussian noise generated mechanism. Noise would be decayed with Adaptive Gaussian noise generated mechanism. Noise would be decayed with
training. Decay mode could be 'Time' mode, 'Step' mode, 'Exp' mode. training. Decay mode could be 'Time' mode, 'Step' mode, 'Exp' mode.
`self._noise_multiplier` will be update during the model.train, using
_MechanismsParamsUpdater.


Args: Args:
norm_bound(float): Clipping bound for the l2 norm of the gradients. norm_bound(float): Clipping bound for the l2 norm of the gradients.


Loading…
Cancel
Save