I don’t know if this will work as you expect. The network is treating input1 and input2 as two independent inputs. While operating on one, it has no knowledge of the other.
Could you explain what the exact goal of your network is? That’ll help us get an idea of what you’re trying to achieve here