``` def forward_thread_func(self): try: current_device = torch.npu.current_device() torch.npu.set_device(current_device) ```