A convicted rapist who planned to argue he committed the crimes in his sleep has learned his fate.