Serializes this instance to a JSON string.
(self)
| 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 | |
| 236 | BertLayerNorm = nn.LayerNorm |