Imported from https://github.com/harvard-edge/airlearning