Changing the input tensor size might raise errors, especially if you reduce the feature dimension and a particular layer expects its input to have a defined feature size (e.g. nn.Linear).
You could set the “missing” features to some predefined values, but it depends on your use case what these values might be (there are no “empty” numbers and I would avoid using e.g. NaN as a value).