class_docstr: Implementation of Multi-Perspective Cosine Distance.
  
  Reference:
  https://github.com/zhiguowang/BiMPM/blob/master/src/match_utils.py#L121-L129
  
  Examples:
      >>> import matchzoo as mz
      >>> layer = mz.contrib.layers.multi_perspective_layer.MpCosineLayer(
      ...     mp_dim=50)
      >>> layer.compute_output_shape([(32, 10, 100), (32, 10, 100)])
      (32, 10, 50)
class_docstr_tok: ["Implementation","of","Multi-Perspective","Cosine","Distance",".","Reference",":","https",":","\/\/github.com\/zhiguowang\/BiMPM\/blob\/master\/src\/match_utils.py","#","L121-L129","Examples",":",">",">",">","import","matchzoo","as","mz",">",">",">","layer","=","mz.contrib.layers.multi_perspective_layer.MpCosineLayer","(","...","mp_dim=50",")",">",">",">","layer.compute_output_shape","(","[","(","32",",","10",",","100",")",",","(","32",",","10",",","100",")","]",")","(","32",",","10",",","50",")"]
docstr: Compute output shape.
docstr_tok: ["Compute","output","shape","."]
code: def compute_output_shape(self, input_shape):
      """Compute output shape."""
      return input_shape[0][0], input_shape[0][1], self.mp_dim
  
imports: import tensorflow
  from keras import backend
  from keras.engine import Layer
  from matchzoo.contrib.layers.attention_layer import AttentionLayer
label_desc: Use image node_id 4 for calling the MpCosineLayer obj's underlying member method code with example usage: obj.compute_output_shape(input_shape) and returns: input_shape,  input_shape,  self