def fc_identity(input_tensor, n=1000, d=0.5): x = fc_block1(input_tensor, n, d) x = Dense(int(input_tensor.shape[1]))(x) x = merge([x, input_tensor], mode='sum', concat_axis=1) x = LeakyReLU()(x) return x