torchcell.datamodels.interned_constant.split_experiment_dump
- split_experiment_dump(dump: dict[str, Any]) tuple[dict[str, Any], list[tuple[str, str, str]]][source]
Return
(pointered dump, constants)for oneexperiment.model_dump().constantsis a list of(id, kind, payload)for every field (or nested sub-field, kind"<field>.<sub>") that became a pointer;payloadisjson.dumpsof the field’s value, byte-identical to the bytes that value contributes tojson.dumps(dump), so splicingjson.loads(payload)back reproduces the inlined record.dumpis not mutated.