Depending on the architecture of the model you could either pass the new input to the desired modules directly:
model = ...
input = ...
output = model.last_block(input)

In case the architecture is not split into submodules and uses e.g. the functional API in its forward, I would recommend to write a new custom nn.Module and adapt the forward method as needed.