# tfr.keras.strategy_utils.get_output_filepath

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/keras/strategy_utils.py#L159-L185) |

Gets filepaths for different workers to resolve conflict of MWMS.

    tfr.keras.strategy_utils.get_output_filepath(
        filepath: str, strategy: Optional[tf.distribute.Strategy]
    ) -> str

#### Example usage:

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

<br />

<br />

<br />

| ## Args ||
|---|---|
| `filepath` | Path to output model files. |
| `strategy` | Distributed training strategy is used. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Output path that is compatible with strategy and the specific worker. ||

<br />