It seems like this was recently modified in https://github.com/pytorch/pytorch/pull/48993 11. The operator expects the values passed in to the embedding operator to be contiguous.
You could check the inputs by doing x.is_contiguous() and call x.contiguous() if they are not.
I’ll file an issue to support this in the operator itself.