tfr.keras.strategy_utils.get_output_filepath

Gets filepaths for different workers to resolve conflict of MWMS.

Example usage:

strategy = get_strategy("MultiWorkerMirroredStrategy")
worker_filepath = get_output_filepath("model/", strategy)

filepath Path to output model files.
strategy Distributed training strategy is used.

Output path that is compatible with strategy and the specific worker.