提交 2003b91e 编写于 作者: Z zhenghuanhuan

[MA][diff_privacy][Func] AdaGaussianRandom not checked param alpha

https://gitee.com/mindspore/dashboard?issue_id=I1J496
上级 b9ba5ae3
......@@ -114,8 +114,8 @@ class DPModel(Model):
self._micro_batches = check_int_positive('micro_batches', micro_batches)
else:
self._micro_batches = None
float_norm_clip = check_param_type('l2_norm_clip', norm_clip, float)
self._norm_clip = check_value_positive('l2_norm_clip', float_norm_clip)
norm_clip = check_param_type('norm_clip', norm_clip, float)
self._norm_clip = check_value_positive('norm_clip', norm_clip)
if isinstance(dp_mech, mechanisms.Mechanisms):
self._dp_mech = dp_mech
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册