I have Siamese network that produce feature maps for images, how do I get dot product of those feature maps with Keras?
input_a = Input(input_size)
input_b = Input(input_size)
fe_net_a = model(input_a)
fe_net_b = model(input_b)
E.g. if output tensor of fe_net_a
and fe_net_b
has shape (1, 17, 17, 1024), how to create layer that will produce tensor of shape (1, 17, 17), taking dot product of last axis?