<p dir="auto">Hi,</p>
<p dir="auto">Related to  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="90761003" data-permission-text="Title is private" data-url="https://github.com/keras-team/keras/issues/277" data-hovercard-type="pull_request" data-hovercard-url="/keras-team/keras/pull/277/hovercard" href="https://github.com/keras-team/keras/pull/277">#277</a>, I'd like to create an overlapping model but with the input comes from different place. Is it supported? How can I do this? The following code gives me an error because of the unexpected input.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="left = Sequential()
left.add(Dense(784, 50))
left.add(Activation('relu'))

model = Sequential()
model.add(Merge([left, left], mode='concat'))

model.add(Dense(100, 10))
model.add(Activation('softmax'))

model.compile(loss='categorical_crossentropy', optimizer='rmsprop')

model.fit([X1_train, X2_train], Y_train, batch_size=128, nb_epoch=20)"><pre class="notranslate"><span class="pl-s1">left</span> <span class="pl-c1">=</span> <span class="pl-v">Sequential</span>()
<span class="pl-s1">left</span>.<span class="pl-en">add</span>(<span class="pl-v">Dense</span>(<span class="pl-c1">784</span>, <span class="pl-c1">50</span>))
<span class="pl-s1">left</span>.<span class="pl-en">add</span>(<span class="pl-v">Activation</span>(<span class="pl-s">'relu'</span>))

<span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">Sequential</span>()
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Merge</span>([<span class="pl-s1">left</span>, <span class="pl-s1">left</span>], <span class="pl-s1">mode</span><span class="pl-c1">=</span><span class="pl-s">'concat'</span>))

<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dense</span>(<span class="pl-c1">100</span>, <span class="pl-c1">10</span>))
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Activation</span>(<span class="pl-s">'softmax'</span>))

<span class="pl-s1">model</span>.<span class="pl-en">compile</span>(<span class="pl-s1">loss</span><span class="pl-c1">=</span><span class="pl-s">'categorical_crossentropy'</span>, <span class="pl-s1">optimizer</span><span class="pl-c1">=</span><span class="pl-s">'rmsprop'</span>)

<span class="pl-s1">model</span>.<span class="pl-en">fit</span>([<span class="pl-v">X1_train</span>, <span class="pl-v">X2_train</span>], <span class="pl-v">Y_train</span>, <span class="pl-s1">batch_size</span><span class="pl-c1">=</span><span class="pl-c1">128</span>, <span class="pl-s1">nb_epoch</span><span class="pl-c1">=</span><span class="pl-c1">20</span>)</pre></div>
<p dir="auto">TIA</p>
<p dir="auto">Please make sure that the boxes below are checked before you submit your issue.<br>
If your issue is an <strong>implementation question</strong>, please ask your question on <a href="http://stackoverflow.com/questions/tagged/keras" rel="nofollow">StackOverflow</a> or <a href="https://keras-slack-autojoin.herokuapp.com/" rel="nofollow">on the Keras Slack channel</a> instead of opening a GitHub issue.</p>
<p dir="auto">Thank you!</p>
<ul class="contains-task-list">
<li>
<p dir="auto">[ 1] Check that you are up-to-date with the master branch of Keras. You can update with:<br>
<code class="notranslate">pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps</code></p>
</li>
<li>
<p dir="auto">[ 1] Check that your version of TensorFlow is up-to-date. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</p>
</li>
</ul>
<p dir="auto">Hi,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I need to get weights from concatenate layer, when I did the following "><pre class="notranslate"><code class="notranslate">I need to get weights from concatenate layer, when I did the following 
</code></pre></div>
<p dir="auto">joint = concatenate([src2, tgt2],name='joint')<br>
w_sj,w_jt=np.hsplit(joint.get_weights()[0], 2)</p>
<p dir="auto">I get the following error , 'Tensor' object has no attribute 'get_weights'</p>