torch.tx.DeviceOf
export type DeviceOf<T> = T extends Tensor<any, any, infer Dev> ? Dev : DeviceType;TExtract Device from a Tensor type, defaulting to DeviceType for scalars.
export type DeviceOf<T> = T extends Tensor<any, any, infer Dev> ? Dev : DeviceType;TExtract Device from a Tensor type, defaulting to DeviceType for scalars.