nn.Dropout will apply a mask to each sample separately as seen here:
drop = nn.Dropout()
x = torch.ones(20, 2)
out = drop(x)
print(out)

However, if you are using a batched input, the batchnorm statistics would be different (in case you are using batchnorm layers).