`torch.device`: The device on which the module is (assuming that all the module parameters are on the same device).
(self)
| 1899 | |
| 1900 | @property |
| 1901 | def device(self) -> torch.device: |
| 1902 | """ |
| 1903 | `torch.device`: The device on which the module is (assuming that all the module parameters are on the same |
| 1904 | device). |
| 1905 | """ |
| 1906 | return get_parameter_device(self) |
| 1907 | |
| 1908 | @property |
| 1909 | def dtype(self) -> torch.dtype: |