If somebody gets some sort of head trauma and loses their memory, when they regain consciousness they don't remember who they are, if they're married, etc. So if a gay person goes through the same experience, are they still gay?
My guess -
Yes they would still be gay. If a straight man or woman goes though your memory loss example, they do not change what gender they are right? I don't believe that happens, so a gay person would still be gay.