python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Input 0 of layer "bidirectional_2" is incompatible with the layer: expected ndim=3, found ndim=2
I am trying to classify text with bi-lstm but while I run model.predict on new dataset it is giving me this error:
Input 0 of layer "bidirectional_2" is incompatible with the layer: expected...
Rubiya shoukat
Votes: 0
Answers: 1
Bert embedding layer raises 'ValueError: A target array with shape ' with BiLSTM in keras tensorflow
I've problems integrating Bert Embedding Layer in a BiLSTM model for text classification task.
My dataset is in the form where each row has 2 columns: text and polarity
text = string/tweet
polarity = ...
user18630856
Votes: 0
Answers: 1
What does Tensor[batch_mask, ...] do?
I saw this line of code in an implementation of BiLSTM:
batch_output = batch_output[batch_mask, ...]
I assume this is some kind of "masking" operation, but found little information on Googl...
aLonelySheep
Votes: 0
Answers: 2
How bert is a bidirectional?
Bert encoder takes the input and goes for the multi-head attention model. But how do they maintain sequence? Since current words don't take sequence of previous words. Besides, why is it bidirectional...
kowser66
Votes: 0
Answers: 1