Doubt from Logistic Regression chapter

print('Sample outputs :\n', outputs[:2].data)

Can anyone please explain how outputs[:2] will work. if its a 128 x 10 tensor. so if it is a normal array it will print all rows and columns from 2 to all. How it works in tensors?

Thanks in advance…