Efficient Algorithms for Device Placement of DNN Graph Operators