Heterogeneous Resource Allocation with Multi-task Learning for Wireless Networks