Thanks! How can I create a (1, 300) vectors from this setting? Given that created tokenised n-grams are of different shape I am getting an error

Sizes of tensors must match except in dimension 2. Got 16 and 8 in dimension 1 (The offending index is 1)