x = Flatten()(x)
std = Lambda(lambda x: K.std(x, axis=1))(input_img)
x = merge([x, std], mode='concat', concat_axis=1)
output = Dense(100, activation='softmax', init='he_normal')(x)
Merge Variables in Keras