Solved by ptrblck in post #2 
              
              
                Based on the error message you are running into a shape mismatch while trying to update one of the parameters. Check the shape of the parameters and make sure add_ would get the expected shapes.