79811359

Date: 2025-11-06 14:02:16
Score: 0.5
Natty:
Report link

tf.keras.layers.LSTMCell expects the argument to be named units, not num_units

lstm_cells = [
    tf.keras.layers.LSTMCell(
        units=num_nodes[li],
        kernel_initializer=tf.keras.initializers.GlorotUniform()
    )
    for li in range(n_layers)
]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: colonel