(self)
| 165 | return self._slice_data == slice(start, stop) |
| 166 | |
| 167 | def __getstate__(self): |
| 168 | if self._slice_data is not None: |
| 169 | # the index can be represented by a slice |
| 170 | return self._slice_data, self.dtype |
| 171 | else: |
| 172 | return self.tousertensor(), self.dtype |
| 173 | |
| 174 | def __setstate__(self, state): |
| 175 | # Pickle compatibility check |
nothing calls this directly
no test coverage detected