Imported from https://github.com/btahir/tensorflow-LAMB