tfr.keras.strategy_utils.NullContextManager
Stay organized with collections
Save and categorize content based on your preferences.
A null context manager for local training.
Example usage:
with NullContextManager():
model = ...
Methods
__enter__
View source
__enter__()
__exit__
View source
__exit__(
*args
)
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."],[],[],null,["# tfr.keras.strategy_utils.NullContextManager\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/keras/strategy_utils.py#L119-L134) |\n\nA null context manager for local training.\n\n#### Example usage:\n\n with NullContextManager():\n model = ...\n\nMethods\n-------\n\n### `__enter__`\n\n[View source](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/keras/strategy_utils.py#L130-L131) \n\n __enter__()\n\n### `__exit__`\n\n[View source](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/keras/strategy_utils.py#L133-L134) \n\n __exit__(\n *args\n )"]]