I have two different CNN network as below:
class CNN_1(object):
def __init__(self, max_input_right, max_input_left,list_ans,filter_sizes, embeddings,embedding_size):
self.max_input_right = max_input_right
self.max_input_left = max_input_left
self.list_ans = list_ans
self.filter_sizes = filter_sizes
self.embeddings = embeddings
self.total_embedding_dim = embedding_size
def create_placeholder(self):
print('Create placeholders')
self.question = tf.placeholder(tf.int32,[None,self.max_input_left],name = 'input_question')
self.sample_set_1 = tf.placeholder(tf.int32, [None,self.max_input_right])
self.sample_set_2 = tf.placeholder(tf.int32, [None,self.max_input_right])
The second CNN layer also looks similar and they are further more functions in it to build the network. Now I want to build a third network which merges these 2 existing network.
Can anyone suggest how to build this third network using tensorflow?