Skip to content

Commit ed086c8

Browse files
rchaotensorflower-gardener
authored andcommitted
PSv2: Replace existing tf.distribute.experimental.ParameterServerStrategy usage with tf.compat.v1.distribute.experimental.ParameterServerStrategy to prepare for the upcoming TF2 ParameterServerStrategy API release.
The practically only difference for API endpoint switch is the monitoring from V2 to V1, for those who were using `tf.distribute.experimental.ParameterServerStrategy`. It's not supported in V2 and should be tracked as V1 anyway. PiperOrigin-RevId: 334847114
1 parent 9926e78 commit ed086c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_model_optimization/python/core/sparsity/keras/prune_distributed_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _distribution_strategies():
3333
tf.distribute.experimental.MultiWorkerMirroredStrategy(),
3434
tf.distribute.MirroredStrategy(),
3535
# TODO(pulkitb): Add parameter_server
36-
# tf.distribute.experimental.ParameterServerStrategy,
36+
# tf.distribute.experimental.ParameterServerStrategy once ready in TF2.
3737
tf.distribute.OneDeviceStrategy('/cpu:0'),
3838
]
3939

0 commit comments

Comments
 (0)