Thank you for writing!
We cannot recommend a medication to restore memory. You need to find out why you are losing your memory after sex. Are drugs or alcohol involved? If so, that could be the cause. You will need to talk to your doctor about what is going on.