(self, device: torch.device, non_blocking: bool = False)
| 17 | raise NotImplementedError |
| 18 | |
| 19 | def to(self, device: torch.device, non_blocking: bool = False): |
| 20 | args = {} |
| 21 | for feature_name, feature_value in self.as_dict().items(): |
| 22 | args[feature_name] = feature_value.to(device=device, non_blocking=non_blocking) |
| 23 | return self.__class__(**args) |
| 24 | |
| 25 | def record_stream(self, stream: torch.cuda.streams.Stream) -> None: |
| 26 | for feature_value in self.as_dict().values(): |