adding getDevice for tensor, manualSeedAll and seedAll