MCPcopy
hub / github.com/dmlc/dgl / __getstate__

Method __getstate__

python/dgl/utils/internal.py:167–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

tousertensorMethod · 0.95

Tested by

no test coverage detected