It seems you are using Keras, so I would recommend to post the question in their discussion board or StackOverflow, as you might find Keras experts there. 
Based on the error message I guess you are trying to cal a module, while it’s a tensor.