MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / to_json_string

Method to_json_string

tests/unit/modeling.py:231–233  ·  view source on GitHub ↗

Serializes this instance to a JSON string.

(self)

Source from the content-addressed store, hash-verified

229 return output
230
231 def to_json_string(self):
232 """Serializes this instance to a JSON string."""
233 return json.dumps(self.to_dict(), indent=2, sort_keys=True) + "\n"
234
235
236BertLayerNorm = nn.LayerNorm

Callers 1

__repr__Method · 0.95

Calls 1

to_dictMethod · 0.95

Tested by

no test coverage detected