Application of Quantum Annealing to Training of Deep Neural Networks