1 #include "variable_length_sequence_padding.h" 5 VariableLengthSequencePadding,
6 VariableLengthSequencePaddingOp<float, CPUContext>);
7 OPERATOR_SCHEMA(VariableLengthSequencePadding)
10 .AllowInplace({{0, 0}})
12 Super special-case operator. Used to pad a tensor to mimic pytorch's 15 Given an input tensor INPUT of size NxBxM and an input tensor LENS 18 N = maximum sequence length 22 set each element of INPUT to zero if it is is past the end of the 23 corresponding sequence (i.e. if LENS[j] > i for an index (i,j,k)). A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...