Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 903 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 903 Bytes

Addons - Callbacks

Contents

https://www.tensorflow.org/addons/api_docs/python/tfa/callbacks

Contribution Guidelines

Standard API

In order to conform with the current API standard, all callbacks must:

  • Inherit from tf.keras.callbacks.Callback.
  • Register as a keras global object so it can be serialized properly: @tf.keras.utils.register_keras_serializable(package='Addons')

Testing Requirements

  • Simple unittests that demonstrate the callback is behaving as expected.
  • To run your tf.functions in eager mode and graph mode in the tests, you can use the @pytest.mark.usefixtures("maybe_run_functions_eagerly") decorator. This will run the tests twice, once normally, and once with tf.config.run_functions_eagerly(True).

Documentation Requirements