Akshayc1 / visual-question-answering

Implementation of VQA in Keras
5 stars 5 forks source link

__init__() missing 1 required positional argument: 'units' #4

Closed LIMBO42 closed 3 years ago

LIMBO42 commented 3 years ago

when i run your code , there are some errors:

TypeError Traceback (most recent call last)

in 1 language_model = Sequential() ----> 2 language_model.add(LSTM(output_dim=num_hidden_nodes_lstm, 3 return_sequences=True, input_shape=(None, word2vec_dim))) 4 5 for i in range(num_layers_lstm-2): TypeError: __init__() missing 1 required positional argument: 'units' Could you help me fix it ?
LIMBO42 commented 3 years ago

OK, I have known how to fix it: output_dim serves the same function of units, so delete "output_dim=" will be fine.