MCPcopy Create free account
hub / github.com/THUDM/GLM / to_dict

Method to_dict

model/modeling_bert.py:255–258  ·  view source on GitHub ↗

Serializes this instance to a Python dictionary.

(self)

Source from the content-addressed store, hash-verified

253 return str(self.to_json_string())
254
255 def to_dict(self):
256 """Serializes this instance to a Python dictionary."""
257 output = copy.deepcopy(self.__dict__)
258 return output
259
260 def to_json_string(self):
261 """Serializes this instance to a JSON string."""

Callers 1

to_json_stringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected