How to input mask value to Convolution1D layer

后端 未结 2 1971
一整个雨季
一整个雨季 2021-02-07 16:27

I need to feed variable length sequences into my model.

My model is Embedding + LSTM + Conv1d + Maxpooling + softmax.

When I set mask_zero =

2条回答
  •  执笔经年
    2021-02-07 16:51

    Conv1D layer does not support masking at this time. Here is an open issue on the keras repo.

    Depending on the task you might be able to get away with embedding the mask_value just like the other values in the sequence and apply global pooling (as you're doing now).

提交回复
热议问题