A Triple-Inertial Accelerated Alternating Optimization Method for Deep Learning Training