Callback error. myCallback object has no attribute set_model

‘myCallback’ object has no attribute ‘set_model’
This is the error I am facing. I dont know what to do ahead!
I checked one post where the mentor asked if the callback inherited from tensorflow.keras.callbacks.Callback?
I coded the same but still the same error persists

Please inherit from the correct class when writing a custom callback

2 Likes