MCPcopy
hub / github.com/pyg-team/pytorch_geometric / update

Method update

torch_geometric/data/data.py:644–647  ·  view source on GitHub ↗
(self, data: Union[Self, Dict[str, Any]])

Source from the content-addressed store, hash-verified

642 return self._store.to_namedtuple()
643
644 def update(self, data: Union[Self, Dict[str, Any]]) -> Self:
645 for key, value in data.items():
646 self[key] = value
647 return self
648
649 def __cat_dim__(self, key: str, value: Any, *args, **kwargs) -> Any:
650 if is_sparse(value) and ('adj' in key or 'edge_index' in key):

Callers 15

test_data_updateFunction · 0.95
forwardMethod · 0.45
main.pyFile · 0.45
_globalsMethod · 0.45
_loadMethod · 0.45
__init__Method · 0.45
visualize_hetero_graphFunction · 0.45
process_segments_infoFunction · 0.45
deduplicate_qaFunction · 0.45
train_lmMethod · 0.45
train_gnnMethod · 0.45

Calls 1

itemsMethod · 0.45

Tested by 1

test_data_updateFunction · 0.76