AI For Network Hardware Optimisation