Too many problems ** MANY SPOILERS **
For a movie like this to work, it has to be honest with the premises, especially those upon which the plot hinges. There are a few glaring problems that effectively render the entire plot unbelievable, and therefore pretty much wreck what could have been a great movie. In no particular order:
- we're led to believe that Frank has no knowledge of his former wife and mother of two kids? Sure, his mind is fading but he has enough in there to remember his kids. Not once in seeing his ex-wife in the library, he would've remembered? He remembers how to pick locks, spray-paint security cameras, the fact that second-story windows aren't always alarmed... but he doesn't remember her? Come on.
- a robot like this would be backing up its memory daily or hourly or continually, much like any computer or device today does, to the cloud or via Time Machine or whatever. A robot can get hit by a car or fall into a lake, and any owner who paid big $ for a robot would want to know that the replacement will be identical to the one just lost with memory intact, sort of like re-loading a new iPhone from a backup. Therefore, there will be copies of the robot's memories all over the place, easily accessible to cops doing an investigation
- there's no way these robots would be programmed to allow illegal activity. It's a fundamental law of robotics. Otherwise, what's to stop someone from teaching one of these things to kill? Would it know that killing is wrong? Why is it any more or less wrong than stealing?
- the cops could've asked the robot what it knows about the robbery. What's it going to do, "cover for Frank?" How about, as the robot is programmed to look after Frank's best interests, you tell it "hey robot, tell us what you know or Frank goes to a rat-infested prison for the rest of his life"
- a robot would also have some sort of GPS/tracking in case it gets lost. Somewhere, memory erased or not, it an accurate log of that robot being on the premises of the library and that house during the time of those robberies.
There are other little things, but these are fundamentally game-breakers when it comes to a movie like this, where the science-fiction framework laid has to be faithful to reality and not bend little rules to suit the plot. In this case, the plot depends on a number of things that just aren't plausible within the context the movie itself defines.