Hardware Friendly Learning for Edge ML