Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assignment of
str
-typed value to device
attribute
The `device` property is defined via the method ``` @Property def device(self) -> torch.device: return self._device ``` which indicates that the `_device` attribute should only have the `torch.device` datatype, whereas the current implementation allows assigning a `str` value via the `_init_shape(...)` method, which has a parameter `device` typed as `str | Device`.
- Loading branch information