[slimtensor] Add CUDA DeviceType and extend Device class #16437
Dr.CI classification results
{"FAILED":[],"FLAKY":[],"BROKEN_TRUNK":[{"workflowId":21191476753,"workflowUniqueId":198852395,"id":60958582139,"runnerName":"i-0206f7012ca1383a9","authorEmail":"gasoonjia@icloud.com","name":"Test Metal Backend / export-model-metal-artifact (openai, whisper-small, non-quantized) / macos-job","jobName":"export-model-metal-artifact (openai, whisper-small, non-quantized) / macos-job","conclusion":"failure","completed_at":"2026-01-20T23:50:14.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/21191476753/job/60958582139","logUrl":"https://ossci-raw-job-status.s3.amazonaws.com/log/pytorch/executorch/60958582139","head_branch":"gh/gasoonjia/79/head","pr_number":16437,"head_sha":"0bbb4d204a3048d786582b869b4b557ff145411d","head_sha_timestamp":"2026-01-20T23:42:38.000000000Z","failure_captures":["RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1"],"failure_lines":["RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1"],"failure_context":[],"time":"2026-01-20T23:43:21.000000000Z"},{"workflowId":21191476753,"workflowUniqueId":198852395,"id":60958582086,"runnerName":"i-01b82a81447ee3f87","authorEmail":"gasoonjia@icloud.com","name":"Test Metal Backend / test-executorch-metal-build / macos-job","jobName":"test-executorch-metal-build / macos-job","conclusion":"failure","completed_at":"2026-01-20T23:47:50.000000000Z","html_url":"https://github.com/pytorch/executorch/actions/runs/21191476753/job/60958582086","logUrl":"https://ossci-raw-job-status.s3.amazonaws.com/log/pytorch/executorch/60958582086","head_branch":"gh/gasoonjia/79/head","pr_number":16437,"head_sha":"0bbb4d204a3048d786582b869b4b557ff145411d","head_sha_timestamp":"2026-01-20T23:42:38.000000000Z","failure_captures":["RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1"],"failure_lines":["RuntimeError: Command bash /Users/ec2-user/runner/_work/_temp/exec_script failed with exit code 1"],"failure_context":[],"time":"2026-01-20T23:43:21.000000000Z"}],"UNSTABLE":[]}