You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated this code to Keras2, but met a problem.
with tf.device('/cpu:0'):
merged = outputs_all[0]
for outputs in outputs_all[1:]:
print(outputs)
merged.append(K.concatenate(outputs, axis=0))
print(merged)
merged contains a list of merged outputs (since the basic model can have multiple outputs. Each output should be a single Tensor concatenated from the replicas. In this case it seems that the replica outputs were not concatenated together (each element in the list contains a Tensor from a different replica).
What looks a bit strange is the usage of K.concatenate() instead of keras.layers.merge.concatenate().
I have updated this code to Keras2, but met a problem.
print
and got an error
Could I merge two tf.Tensors to one tf.Tensor?
The text was updated successfully, but these errors were encountered: