Add Detectron2 to Github actions
# What does this PR do?

This PR makes sure the torch GPU + multi GPU LayoutLMv2/LayoutXLM tests are run on Github actions, by installing Detectron2 from source.

It also fixes a device issue.