title: tensorflow js loading gru model
body: <p>I have a GRU based model . I have converted it for tensorflow js . While loading it iin tfjs getting an error</p>
  <blockquote>
  <p>Unhandled Rejection (Error): GRUCell does not support reset_after parameter set to true.</p>
  </blockquote>
  <p>I have attached corresponding json . Please advice</p>
  <blockquote>
  <p>{&quot;format&quot;: &quot;layers-model&quot;, &quot;generatedBy&quot;: &quot;keras v2.4.0&quot;, &quot;convertedBy&quot;: &quot;TensorFlow.js Converter v2.7.0&quot;, &quot;modelTopology&quot;: {&quot;keras_version&quot;: &quot;2.4.0&quot;, &quot;backend&quot;: &quot;tensorflow&quot;, &quot;model_config&quot;: {&quot;class_name&quot;: &quot;Sequential&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;sequential&quot;, &quot;layers&quot;: [{&quot;class_name&quot;: &quot;InputLayer&quot;, &quot;config&quot;: {&quot;batch_input_shape&quot;: [null, 48, 64], &quot;dtype&quot;: &quot;float32&quot;, &quot;sparse&quot;: false, &quot;ragged&quot;: false, &quot;name&quot;: &quot;input_1&quot;}}, {&quot;class_name&quot;: &quot;LayerNormalization&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;layer_normalization&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;axis&quot;: [2], &quot;epsilon&quot;: 0.001, &quot;center&quot;: true, &quot;scale&quot;: true, &quot;beta_initializer&quot;: {&quot;class_name&quot;: &quot;Zeros&quot;, &quot;config&quot;: {}}, &quot;gamma_initializer&quot;: {&quot;class_name&quot;: &quot;Ones&quot;, &quot;config&quot;: {}}, &quot;beta_regularizer&quot;: null, &quot;gamma_regularizer&quot;: null, &quot;beta_constraint&quot;: null, &quot;gamma_constraint&quot;: null}}, {&quot;class_name&quot;: &quot;Conv1D&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;conv1d&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;filters&quot;: 32, &quot;kernel_size&quot;: [3], &quot;strides&quot;: [1], &quot;padding&quot;: &quot;valid&quot;, &quot;data_format&quot;: &quot;channels_last&quot;, &quot;dilation_rate&quot;: [1], &quot;groups&quot;: 1, &quot;activation&quot;: &quot;relu&quot;, &quot;use_bias&quot;: true, &quot;kernel_initializer&quot;: {&quot;class_name&quot;: &quot;GlorotUniform&quot;, &quot;config&quot;: {&quot;seed&quot;: null}}, &quot;bias_initializer&quot;: {&quot;class_name&quot;: &quot;Zeros&quot;, &quot;config&quot;: {}}, &quot;kernel_regularizer&quot;: null, &quot;bias_regularizer&quot;: null, &quot;activity_regularizer&quot;: null, &quot;kernel_constraint&quot;: null, &quot;bias_constraint&quot;: null}}, {&quot;class_name&quot;: &quot;BatchNormalization&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;batch_normalization&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;axis&quot;: [2], &quot;momentum&quot;: 0.99, &quot;epsilon&quot;: 0.001, &quot;center&quot;: true, &quot;scale&quot;: true, &quot;beta_initializer&quot;: {&quot;class_name&quot;: &quot;Zeros&quot;, &quot;config&quot;: {}}, &quot;gamma_initializer&quot;: {&quot;class_name&quot;: &quot;Ones&quot;, &quot;config&quot;: {}}, &quot;moving_mean_initializer&quot;: {&quot;class_name&quot;: &quot;Zeros&quot;, &quot;config&quot;: {}}, &quot;moving_variance_initializer&quot;: {&quot;class_name&quot;: &quot;Ones&quot;, &quot;config&quot;: {}}, &quot;beta_regularizer&quot;: null, &quot;gamma_regularizer&quot;: null, &quot;beta_constraint&quot;: null, &quot;gamma_constraint&quot;: null}}, {&quot;class_name&quot;: &quot;MaxPooling1D&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;max_pooling1d&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;strides&quot;: [3], &quot;pool_size&quot;: [3], &quot;padding&quot;: &quot;valid&quot;, &quot;data_format&quot;: &quot;channels_last&quot;}}, {&quot;class_name&quot;: &quot;Conv1D&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;conv1d_1&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;filters&quot;: 32, &quot;kernel_size&quot;: [3], &quot;strides&quot;: [1], &quot;padding&quot;: &quot;valid&quot;, &quot;data_format&quot;: &quot;channels_last&quot;, &quot;dilation_rate&quot;: [1], &quot;groups&quot;: 1, &quot;activation&quot;: &quot;relu&quot;, &quot;use_bias&quot;: true, &quot;kernel_initializer&quot;: {&quot;class_name&quot;: &quot;GlorotUniform&quot;, &quot;config&quot;: {&quot;seed&quot;: null}}, &quot;bias_initializer&quot;: {&quot;class_name&quot;: &quot;Zeros&quot;, &quot;config&quot;: {}}, &quot;kernel_regularizer&quot;: null, &quot;bias_regularizer&quot;: null, &quot;activity_regularizer&quot;: null, &quot;kernel_constraint&quot;: null, &quot;bias_constraint&quot;: null}}, {&quot;class_name&quot;: &quot;Dropout&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;dropout&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;rate&quot;: 0.25, &quot;noise_shape&quot;: null, &quot;seed&quot;: null}}, {&quot;class_name&quot;: &quot;GRU&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;gru&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;return_sequences&quot;: true, &quot;return_state&quot;: false, &quot;go_backwards&quot;: false, &quot;stateful&quot;: false, &quot;unroll&quot;: false, &quot;time_major&quot;: false, &quot;units&quot;: 40, &quot;activation&quot;: &quot;tanh&quot;, &quot;recurrent_activation&quot;: &quot;sigmoid&quot;, &quot;use_bias&quot;: true, &quot;kernel_initializer&quot;: {&quot;class_name&quot;: &quot;GlorotUniform&quot;, &quot;config&quot;: {&quot;seed&quot;: null}}, &quot;recurrent_initializer&quot;: {&quot;class_name&quot;: &quot;Orthogonal&quot;, &quot;config&quot;: {&quot;gain&quot;: 1.0, &quot;seed&quot;: null}}, &quot;bias_initializer&quot;: {&quot;class_name&quot;: &quot;Zeros&quot;, &quot;config&quot;: {}}, &quot;kernel_regularizer&quot;: null, &quot;recurrent_regularizer&quot;: null, &quot;bias_regularizer&quot;: null, &quot;activity_regularizer&quot;: null, &quot;kernel_constraint&quot;: null, &quot;recurrent_constraint&quot;: null, &quot;bias_constraint&quot;: null, &quot;dropout&quot;: 0.0, &quot;recurrent_dropout&quot;: 0.0, &quot;implementation&quot;: 2, &quot;reset_after&quot;: true}}, {&quot;class_name&quot;: &quot;GRU&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;gru_1&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;return_sequences&quot;: false, &quot;return_state&quot;: false, &quot;go_backwards&quot;: false, &quot;stateful&quot;: false, &quot;unroll&quot;: false, &quot;time_major&quot;: false, &quot;units&quot;: 40, &quot;activation&quot;: &quot;tanh&quot;, &quot;recurrent_activation&quot;: &quot;sigmoid&quot;, &quot;use_bias&quot;: true, &quot;kernel_initializer&quot;: {&quot;class_name&quot;: &quot;GlorotUniform&quot;, &quot;config&quot;: {&quot;seed&quot;: null}}, &quot;recurrent_initializer&quot;: {&quot;class_name&quot;: &quot;Orthogonal&quot;, &quot;config&quot;: {&quot;gain&quot;: 1.0, &quot;seed&quot;: null}}, &quot;bias_initializer&quot;: {&quot;class_name&quot;: &quot;Zeros&quot;, &quot;config&quot;: {}}, &quot;kernel_regularizer&quot;: null, &quot;recurrent_regularizer&quot;: null, &quot;bias_regularizer&quot;: null, &quot;activity_regularizer&quot;: null, &quot;kernel_constraint&quot;: null, &quot;recurrent_constraint&quot;: null, &quot;bias_constraint&quot;: null, &quot;dropout&quot;: 0.0, &quot;recurrent_dropout&quot;: 0.0, &quot;implementation&quot;: 2, &quot;reset_after&quot;: true}}, {&quot;class_name&quot;: &quot;Flatten&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;flatten&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;data_format&quot;: &quot;channels_last&quot;}}, {&quot;class_name&quot;: &quot;Dense&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;dense&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;units&quot;: 100, &quot;activation&quot;: &quot;relu&quot;, &quot;use_bias&quot;: true, &quot;kernel_initializer&quot;: {&quot;class_name&quot;: &quot;GlorotUniform&quot;, &quot;config&quot;: {&quot;seed&quot;: null}}, &quot;bias_initializer&quot;: {&quot;class_name&quot;: &quot;Zeros&quot;, &quot;config&quot;: {}}, &quot;kernel_regularizer&quot;: null, &quot;bias_regularizer&quot;: null, &quot;activity_regularizer&quot;: null, &quot;kernel_constraint&quot;: null, &quot;bias_constraint&quot;: null}}, {&quot;class_name&quot;: &quot;Dropout&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;dropout_1&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;rate&quot;: 0.25, &quot;noise_shape&quot;: null, &quot;seed&quot;: null}}, {&quot;class_name&quot;: &quot;Dense&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;dense_1&quot;, &quot;trainable&quot;: true, &quot;dtype&quot;: &quot;float32&quot;, &quot;units&quot;: 2, &quot;activation&quot;: &quot;linear&quot;, &quot;use_bias&quot;: true, &quot;kernel_initializer&quot;: {&quot;class_name&quot;: &quot;GlorotUniform&quot;, &quot;config&quot;: {&quot;seed&quot;: null}}, &quot;bias_initializer&quot;: {&quot;class_name&quot;: &quot;Zeros&quot;, &quot;config&quot;: {}}, &quot;kernel_regularizer&quot;: null, &quot;bias_regularizer&quot;: null, &quot;activity_regularizer&quot;: null, &quot;kernel_constraint&quot;: null, &quot;bias_constraint&quot;: null}}]}}, &quot;training_config&quot;: {&quot;loss&quot;: {&quot;class_name&quot;: &quot;SparseCategoricalCrossentropy&quot;, &quot;config&quot;: {&quot;reduction&quot;: &quot;auto&quot;, &quot;name&quot;: &quot;sparse_categorical_crossentropy&quot;, &quot;from_logits&quot;: true}}, &quot;metrics&quot;: [&quot;accuracy&quot;], &quot;weighted_metrics&quot;: null, &quot;loss_weights&quot;: null, &quot;optimizer_config&quot;: {&quot;class_name&quot;: &quot;Adam&quot;, &quot;config&quot;: {&quot;name&quot;: &quot;Adam&quot;, &quot;learning_rate&quot;: 0.0010000000474974513, &quot;decay&quot;: 0.0, &quot;beta_1&quot;: 0.8999999761581421, &quot;beta_2&quot;: 0.9990000128746033, &quot;epsilon&quot;: 1e-07, &quot;amsgrad&quot;: false}}}}, &quot;weightsManifest&quot;: [{&quot;paths&quot;: [&quot;group1-shard1of1.bin&quot;], &quot;weights&quot;: [{&quot;name&quot;: &quot;batch_normalization/gamma&quot;, &quot;shape&quot;: [32], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;batch_normalization/beta&quot;, &quot;shape&quot;: [32], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;batch_normalization/moving_mean&quot;, &quot;shape&quot;: [32], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;batch_normalization/moving_variance&quot;, &quot;shape&quot;: [32], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;conv1d/kernel&quot;, &quot;shape&quot;: [3, 64, 32], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;conv1d/bias&quot;, &quot;shape&quot;: [32], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;conv1d_1/kernel&quot;, &quot;shape&quot;: [3, 32, 32], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;conv1d_1/bias&quot;, &quot;shape&quot;: [32], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;dense/kernel&quot;, &quot;shape&quot;: [40, 100], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;dense/bias&quot;, &quot;shape&quot;: [100], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;dense_1/kernel&quot;, &quot;shape&quot;: [100, 2], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;dense_1/bias&quot;, &quot;shape&quot;: [2], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;gru/gru_cell/kernel&quot;, &quot;shape&quot;: [32, 120], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;gru/gru_cell/recurrent_kernel&quot;, &quot;shape&quot;: [40, 120], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;gru/gru_cell/bias&quot;, &quot;shape&quot;: [2, 120], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;gru_1/gru_cell_1/kernel&quot;, &quot;shape&quot;: [40, 120], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;gru_1/gru_cell_1/recurrent_kernel&quot;, &quot;shape&quot;: [40, 120], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;gru_1/gru_cell_1/bias&quot;, &quot;shape&quot;: [2, 120], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;layer_normalization/gamma&quot;, &quot;shape&quot;: [64], &quot;dtype&quot;: &quot;float32&quot;}, {&quot;name&quot;: &quot;layer_normalization/beta&quot;, &quot;shape&quot;: [64], &quot;dtype&quot;: &quot;float32&quot;}]}]}</p>
  </blockquote>