Imported from https://github.com/dalab/hyperbolic_nn