MCPcopy Create free account
hub / github.com/alibaba/graph-learn / _init

Method _init

graphlearn/python/data/values.py:153–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 return np.reshape(value, self._shape)
152
153 def _init(self):
154 if self._inited:
155 return
156
157 values = self._lookup()
158 self.int_attrs = values.int_attrs
159 self.float_attrs = values.float_attrs
160 self.string_attrs = values.string_attrs
161 self.weights = values.weights
162 self.labels = values.labels
163
164 def _lookup(self):
165 raise NotImplementedError("_lookup() must be override by Nodes and Edges.")

Callers 5

int_attrsMethod · 0.95
float_attrsMethod · 0.95
string_attrsMethod · 0.95
weightsMethod · 0.95
labelsMethod · 0.95

Calls 1

_lookupMethod · 0.95

Tested by

no test coverage detected