Learning to optimize: Training deep neural networks for wireless resource management