MCPcopy
hub / github.com/google-deepmind/graph_nets / replace

Method replace

graph_nets/graphs.py:173–176  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

171 self._validate_none_fields()
172
173 def replace(self, **kwargs):
174 output = self._replace(**kwargs)
175 output._validate_none_fields() # pylint: disable=protected-access
176 return output
177
178 def map(self, field_fn, fields=GRAPH_FEATURE_FIELDS):
179 """Applies `field_fn` to the fields `fields` of the instance.

Callers 15

mapMethod · 0.95
_buildMethod · 0.80
_buildMethod · 0.80
_buildMethod · 0.80
_buildMethod · 0.80
_buildMethod · 0.80
_buildMethod · 0.80
_buildMethod · 0.80
concatFunction · 0.80

Calls 1

_validate_none_fieldsMethod · 0.80