apply torch int div to layoutlmv2
# What does this PR do?

Linked to #14853 (now closed - bad rebase)

@LysandreJik 
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_15457). All of your documentation changes will be reflected on that endpoint.<|||||>REALM tests seem to be failing  - doesn't seem like they should be running ?<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.<|||||>@ManuelFay can you rebase with master such that we can merge your PR?<|||||>Done, and I changed the path to the custom divide function (compatible with older torch versions).  @NielsRogge <|||||>_The documentation is not available anymore as the PR was closed or merged._<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.<|||||>Hi @ManuelFay, apologies, for some reason this is still not merged. Can you rebase your PR with the main branch such that we can merge it? Apologies again for asking you this a second time.

Thanks!<|||||>No problem @NielsRogge ! Here you go, rebased ;) 