The following code pos_function.py, line 64
embed_seq_pos = Embedding(self.pos_output_dim,self.pos_input_dim,input_length=self.max_len, dropout=0.2,trainable=self.pos_trainable_param)(input_seq_pos)
Produces the following error message
TypeError: ('Keyword argument not understood:', 'dropout')
Unfortunately, I have also obtained such an error.
The probable way to avoid the error is to omit a dropout argument completely, but I seriously doubt whether it's okay for model training.
The following code pos_function.py, line 64 embed_seq_pos = Embedding(self.pos_output_dim,self.pos_input_dim,input_length=self.max_len, dropout=0.2,trainable=self.pos_trainable_param)(input_seq_pos)
Produces the following error message TypeError: ('Keyword argument not understood:', 'dropout')
Keras API https://keras.io/api/layers/core_layers/embedding/ does not include dropout as an argument.
Please confirm, thanks. Peter