You should call model.eval() to set the model to evaluation mode, which will change the behavior of some modules (e.g. batchnorm layers will use their running stats and dropout will be disabled) and can then directly pass your test data:
model.eval()
out = model(test_tensor)
...