I have input vectors with different size: [1,0,1], [1,0,1,1,1,1]…
Is there a way to add additional NN layer that Pads vectors on the right side with 2?
[1,0,1] -> [1,0,1,2,2,2,2,2] 
[1,0,1,1,1,1] ->  [1,0,1,1,1,1,2,2]

MAX_STRING_SIZE = 8
model = torch.nn.Sequential(
    torch.nn.Linear(MAX_STRING_SIZE, 1),
    torch.nn.Sigmoid()
)