class_docstr: Keras test
class_docstr_tok: ["Keras","test"]
docstr: test_forward_merge
docstr_tok: ["test_forward_merge"]
code: def test_forward_merge(self, keras_mod):
      """test_forward_merge"""
      data = keras_mod.layers.Input(shape=(32, 32, 3))
      conv2d_x = keras_mod.layers.Conv2D(8, (3, 3), padding="same")(
          data
      )
      conv2d_y = keras_mod.layers.Conv2D(8, (3, 3), padding="same")(
          conv2d_x
      )
      conv2d_z = keras_mod.layers.Conv2D(8, (3, 3), padding="same")(
          conv2d_y
      )
      merge_funcs = [
          keras_mod.layers.Add(),
          keras_mod.layers.Subtract(),
          keras_mod.layers.Multiply(),
          keras_mod.layers.Maximum(),
          keras_mod.layers.Minimum(),
          keras_mod.layers.Average(),
          keras_mod.layers.Concatenate(),
      ]
      for merge_func in merge_funcs:
          class_name = type(merge_func).__name__
          if class_name in ("Subtract", "Dot"):
              out = merge_func([conv2d_x, conv2d_y])
          else:
              out = merge_func([conv2d_x, conv2d_y, conv2d_z])
          keras_model = keras_mod.models.Model(data, out)
          verify_keras_frontend(keras_model)
  
imports: from packaging import version
  import numpy
  from tensorflow import keras
  import keras
  import pytest
  import tvm
  from tvm import relay
  from tvm.contrib import graph_executor
  import tvm.testing
label_desc: Use image node_id 1 for calling the TestKeras obj's underlying member method code with example usage: obj.test_forward_merge(keras_mod) without return types