Attend the Women in ML Symposium on December 7 Register now

tfr.keras.strategy_utils.strategy_scope

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

Gets the strategy.scope() for training with strategy.

Example usage:

with strategy_scope(strategy):
  model = ...

strategy Distributed training strategy is used.

ContextManager for the distributed training strategy.