mikal94305
mikal94305

Reputation: 5093

Can Tensorflow programs use off-the-shelf Keras callbacks?

Can Tensorflow programs use off-the-shelf Keras callbacks, when the machine learning program is using native Tensorflow and no other apis from Keras?

Upvotes: 0

Views: 138

Answers (2)

Y. Luo
Y. Luo

Reputation: 5732

To start with, maybe check the keras implementation inside native Tensorflow. It has all callbacks in Keras. And you should be able to write your own callbacks just like in Keras. There might be 2 caveats:

  1. Tensorflow keras and Keras do have small differences.
  2. It might be tricky if you want to use these callbacks outside tf.keras.

Upvotes: 1

Muska
Muska

Reputation: 46

Can't you create your own callback function in TensorFlow?

EDIT: Oh nevermind, didn't see the part about native TF.

EDIT 2: Is this useful?: In Tensorflow, is there a simple way to register a callback function for when model checkpointing happens?

Upvotes: 0

Related Questions