Custom Optimizer

Hi, I’m trying to write a custom optimizer, but the official documentation doesn’t say much

I don’t quite get how I’m supposed to use the slots and update the variables. I was able to find some external tutorial but they either were old (refer to some different version of the optimizer class) or were not clear.

Does anybody know where to find a decent explaination of how to do it without having to reverse engineer the class? Thanks in advance

You can find many custom optimizers at:

Please note that there will be a refactoring for the next release (TF 2.11):