AttributeError: 'Model' object has no attribute 'name' x1 and x2 point to the Reshape layers for the input and not the Input layers themselves.