class_docstr: Generic merge layer for elementwise merge functions.
  
  Used to implement `Sum`, `Average`, etc.
  
  Args:
      **kwargs: standard layer keyword arguments.
class_docstr_tok: ["Generic","merge","layer","for","elementwise","merge","functions",".","Used","to","implement","`","Sum","`",",","`","Average","`",",","etc",".","Args",":","*","*","kwargs",":","standard","layer","keyword","arguments","."]
code: def compute_output_spec(self, inputs):
      output_shape = self.compute_output_shape(
          [x.shape for x in inputs]
      )
      output_sparse = all(x.sparse for x in inputs)
      return KerasTensor(
          output_shape, dtype=self.compute_dtype, sparse=output_sparse
      )
  
file_path: keras/keras/layers/merging/base_merge.py
imports: from keras import backend
  from keras import ops
  from keras.backend.common.keras_tensor import KerasTensor
  from keras.layers.layer import Layer
label_desc: Use image node_id 7 for calling the Merge obj's underlying member method code with example usage: obj.compute_output_spec(inputs) and returns: KerasTensor