Offline Training-Based Mitigation of IR Drop for ReRAM-Based Deep Neural Network Accelerators