(self)
| 105 | return new_instance |
| 106 | |
| 107 | def __copy__(self): |
| 108 | new_instance = type(self).__new__(type(self)) |
| 109 | state = self.__getstate__() |
| 110 | new_instance.__setstate__(state) |
| 111 | return new_instance |
| 112 | |
| 113 | def cuda(self, device=None, non_blocking=False): |
| 114 | device = "cuda" if device is None else device |
nothing calls this directly
no test coverage detected