move torch overlay to device config

(cherry picked from commit 32fbed96091485fae9f7a30e7789db3d1235897f)

Change-Id: Iec3b5cf88867dd2de86b9d6bbeecfa4955bcae0b