Make replicate_model_fn more flexible to simplify users' model_fn.
If there is only one device then replication/aggregation overhead isn't added. It is okay to not use TowerEstimator if there is only one device. It is okay to use TowerEstimator but not use replicate_model_fn. PiperOrigin-RevId: 181388296
Loading
Please sign in to comment