MemOpt: a memory optimization method for deep learning model training based on dual intelligent reinforcement learning | Synapse