add device support for torch in DeviceUtils

Change-Id: Ib74f78bc2c0c08b03524ed7a53b33ed88319e1fc