(self)
| 129 | return self |
| 130 | |
| 131 | def detach(self) -> 'PointCloud': |
| 132 | for attr_name in self.attr_names: |
| 133 | arr = getattr(self, attr_name, None) |
| 134 | if arr is not None: |
| 135 | setattr(self, attr_name, arr.detach()) |
| 136 | return self |
| 137 | |
| 138 | def clone(self) -> 'PointCloud': |
| 139 | data_dict = dict() |