Add a dynamic time warping layer to a feed foward neural net

Hello to everyone,

is it possible to add a dynamic time warping layer for a feed forward neural net in pytorch to classify gestures?

The gestures to detect are sometimes shifted in time or length in comparison to the train set.

Kind regards