Fix import of tutorials common module.
PiperOrigin-RevId: 321789833
This commit is contained in:
parent
8ec709e3d7
commit
1a959eec34
3 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,7 @@ import tensorflow.compat.v1 as tf
|
|||
|
||||
from tensorflow_privacy.privacy.analysis import compute_dp_sgd_privacy_lib
|
||||
from tensorflow_privacy.privacy.optimizers import dp_optimizer
|
||||
from tensorflow_privacy.tutorials import mnist_dpsgd_tutorial_common as common
|
||||
import mnist_dpsgd_tutorial_common as common
|
||||
|
||||
flags.DEFINE_boolean(
|
||||
'dpsgd', True, 'If True, train with DP-SGD. If False, '
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
# These are not necessary in a Python 3-only module.
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import google_type_annotations
|
||||
from __future__ import print_function
|
||||
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
|
|
@ -29,7 +29,7 @@ import tensorflow.compat.v1 as tf
|
|||
|
||||
from tensorflow_privacy.privacy.analysis import compute_dp_sgd_privacy_lib
|
||||
from tensorflow_privacy.privacy.optimizers import dp_optimizer
|
||||
from tensorflow_privacy.tutorials import mnist_dpsgd_tutorial_common as common
|
||||
import mnist_dpsgd_tutorial_common as common
|
||||
|
||||
flags.DEFINE_boolean(
|
||||
'dpsgd', True, 'If True, train with DP-SGD. If False, '
|
||||
|
|
Loading…
Reference in a new issue