Imported from https://github.com/antspy/quantized_distillation