MCPcopy
hub / github.com/huggingface/transformers / __setitem__

Method __setitem__

src/transformers/utils/generic.py:1084–1086  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

1082 return self._global_mapping[key]
1083
1084 def __setitem__(self, key, value):
1085 # Allow local update of the default functions without impacting other instances
1086 self._local_mapping.update({key: value})
1087
1088 def __delitem__(self, key):
1089 del self._local_mapping[key]

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected