MCPcopy
hub / github.com/THUDM/CogDL / clone

Method clone

cogdl/data/data.py:408–409  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

406 return [x for x in self.keys if "row" not in x and "col" not in x]
407
408 def clone(self):
409 return Adjacency.from_dict({k: v.clone() for k, v in self})
410
411 def to_scipy_csr(self):
412 data = self.get_weight().cpu().numpy()

Callers

nothing calls this directly

Calls 2

from_dictMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected