HANT: Hardware-Aware Network Transformation