INSTALLATION.md specifies that TF + Keras 2.6 should be installed.
Keras 2.6 does not have yet the optimizers.legacy module although this commit uses it, which creates a runtime error.
Either the required TF + Keras version should be updated or this commit reverted, I guess?