tfr.keras.strategy_utils.get_output_filepath
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)
Args |
filepath
|
Path to output model files.
|
strategy
|
Distributed training strategy is used.
|
Returns |
Output path that is compatible with strategy and the specific worker.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-08-18 UTC.
[null,null,["Last updated 2023-08-18 UTC."],[],[]]