Attend the Women in ML Symposium on December 7 Register now

tfr.keras.strategy_utils.get_output_filepath

Stay organized with collections Save and categorize content based on your preferences.

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.