forked from 626_privacy/tensorflow_privacy
Code changes to get ready for an incoming Keras optimizer migration.
DP optimizer only supports legacy optimizer. PiperOrigin-RevId: 474137890
This commit is contained in:
parent
08364adcb7
commit
c6c3334b57
1 changed files with 3 additions and 3 deletions
|
@ -252,8 +252,8 @@ def make_vectorized_keras_optimizer_class(cls):
|
|||
|
||||
|
||||
VectorizedDPKerasAdagradOptimizer = make_vectorized_keras_optimizer_class(
|
||||
tf.keras.optimizers.Adagrad)
|
||||
tf.keras.optimizers.legacy.Adagrad)
|
||||
VectorizedDPKerasAdamOptimizer = make_vectorized_keras_optimizer_class(
|
||||
tf.keras.optimizers.Adam)
|
||||
tf.keras.optimizers.legacy.Adam)
|
||||
VectorizedDPKerasSGDOptimizer = make_vectorized_keras_optimizer_class(
|
||||
tf.keras.optimizers.SGD)
|
||||
tf.keras.optimizers.legacy.SGD)
|
||||
|
|
Loading…
Reference in a new issue