MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __setstate__

Method __setstate__

bert/tokenization_utils_base.py:192–197  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

190 return {"data": self.data, "encodings": self._encodings}
191
192 def __setstate__(self, state):
193 if "data" in state:
194 self.data = state["data"]
195
196 if "encodings" in state:
197 self._encodings = state["encodings"]
198
199 def keys(self):
200 return self.data.keys()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected