class_docstr: Keras test
class_docstr_tok: ["Keras","test"]
docstr: test_forward_dense
docstr_tok: ["test_forward_dense"]
code: def test_forward_dense(self, keras_mod):
      """test_forward_dense"""
      data = keras_mod.layers.Input(shape=(32, 32, 1))
      x = keras_mod.layers.Flatten()(data)
      x = keras_mod.layers.Dropout(0.5)(x)
      x = keras_mod.layers.Dense(
          10, activation="relu", kernel_initializer="uniform"
      )(x)
      keras_model = keras_mod.models.Model(data, x)
      verify_keras_frontend(keras_model)
      # RNN dense
      data = keras_mod.layers.Input(shape=(1, 32))
      x = keras_mod.layers.Dense(
          32, activation="relu", kernel_initializer="uniform"
      )(data)
      keras_model = keras_mod.models.Model(data, x)
      verify_keras_frontend(keras_model, need_transpose=False)
  
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 6 for calling the TestKeras obj's underlying member method code with example usage: obj.test_forward_dense(keras_mod) without return types