MCPcopy Index your code
hub / github.com/dmlc/dgl / _initialize_data

Method _initialize_data

python/dgl/utils/internal.py:39–44  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

37 self._initialize_data(data)
38
39 def _initialize_data(self, data):
40 self._pydata = None # a numpy type data
41 self._user_tensor_data = dict() # dictionary of user tensors
42 self._dgl_tensor_data = None # a dgl ndarray
43 self._slice_data = None # a slice type data
44 self._dispatch(data)
45
46 def __iter__(self):
47 for i in self.tonumpy():

Callers 2

__init__Method · 0.95
__setstate__Method · 0.95

Calls 1

_dispatchMethod · 0.95

Tested by

no test coverage detected