device_id
- Tensor.device_id()
Retrieves the logical ID of the Houmo device on which the tensor is stored.
- Returns:
device_id -- The logical ID of the Houmo device on which the associated tensor is stored. This is only applicable when the tensor data is stored on a Houmo device; otherwise, the returned value is meaningless.
- Return type:
int