If I provide the input that has torch.Size([3,4]) elements the embedding output will have torch.Size([3, 4, 3]). So there is no reflection of 10 in the output.
I copied the example from the official document you pointed @albanD so we are on the same page.
Not the maximum number of elements. The maximum value in there
As you can see, everything in there is in [0, 9]. If you try to set one value to 42, you will get an error (anything >= 10 will as it is 0-indexed).