You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rfcs/20230621-tf-api-deprecation.md
+1
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ A TensorFlow API is considered fully deprecated when:
58
58
* Runtime warnings can be added by wrapping a deprecated pattern with `@deprecation(...)` as defined in [deprecation.py](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/util/deprecation.py), or, if of greater scale, by adding a distinct deprecated export wrapper in [tf_export.py](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/util/tf_export.py) (and using said new wrapper).
59
59
***Internal usage of deprecated APIs should not raise warnings**. Any warnings should only come from a user-facing call of the deprecated API.
60
60
* Ex: if `tf.bar` uses deprecated `tf.foo`, calling `tf.bar` should not trigger a warning.
61
+
* If an op is being deprecated, it is functionally replaced through graph rewrites of other existing ops.
61
62
* As appropriate, examples (e.g. experimental Colab notebooks) are created demonstrating the replacement of any deprecated modules or methods.
62
63
* The API is covered by a publicly available _strict mode_ which users can optionally enable to convert warnings to failures, with error messages that guide them to replacements.
63
64
* Strict mode is a globally applied state, switched on with `tf.experimental.enable_strict_mode()`.
0 commit comments