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

Method to_dict

tasks/data_utils.py:71–74  ·  view source on GitHub ↗

Serialize this instance to a Python dictionary.

(self)

Source from the content-addressed store, hash-verified

69 return str(self.to_json_string())
70
71 def to_dict(self):
72 """Serialize this instance to a Python dictionary."""
73 output = copy.deepcopy(self.__dict__)
74 return output
75
76 def to_json_string(self):
77 """Serialize this instance to a JSON string."""

Callers 1

to_json_stringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected