I am using keras functional api and I have tensor of shape
phrasing.shape = (?, 553777, 19, 3)
Now I want to take a max feature of unigram
and bigram
& trigram
so the expected shape should be
(?, 553777, 19, 1)
so I added this line
ph = MaxPooling2D ( pool_size=(1,3) )(phrasing)
and get this error : IndexError: tuple index out of range