{"record":{"id":"6491ce74d8bcac63","repo":"keras-team/keras","slug":"invalid-value-for-argument-synchronization-expe","errorCode":null,"errorMessage":"Invalid value for argument `synchronization`. Expected one of `None`, `'none'`, `'on_read'`, `'on_write'`, `'auto'`. Received: synchronization={synchronization}","messagePattern":"Invalid value for argument `synchronization`\\. Expected one of `None`, `'none'`, `'on_read'`, `'on_write'`, `'auto'`\\. Received: synchronization=(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/common/variables.py","lineNumber":136,"sourceCode":"            \"sum\",\n            \"only_first_replica\",\n        ):\n            raise ValueError(\n                \"Invalid value for argument `aggregation`. Expected \"\n                \"one of `None`, `'none'`, `'mean'`, `'sum'`, \"\n                \"`'only_first_replica'`. \"\n                f\"Received: aggregation={aggregation}\"\n            )\n        if aggregation is None:\n            aggregation = \"none\"\n        if synchronization not in (\n            None,\n            \"none\",\n            \"on_read\",\n            \"on_write\",\n            \"auto\",\n        ):\n            raise ValueError(\n                \"Invalid value for argument `synchronization`. Expected \"\n                \"one of `None`, `'none'`, `'on_read'`, `'on_write'`, \"\n                \"`'auto'`. \"\n                f\"Received: synchronization={synchronization}\"\n            )\n        if synchronization is None:\n            synchronization = \"none\"\n        self._name = name\n        parent_path = current_path()\n        if parent_path:\n            self._path = f\"{parent_path}/{name}\"\n        else:\n            self._path = name\n        self._shape = None\n        self._initializer = None\n        self._regularizer = None\n        self._constraint = None\n        self._trainable = bool(trainable)","sourceCodeStart":118,"sourceCodeEnd":154,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/common/variables.py#L118-L154","documentation":"Error \"Invalid value for argument `synchronization`. Expected one of `None`, `'none'`, `'on_read'`, `'on_write'`, `'auto'`. Received: synchronization={synchronization}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/common/variables.py:136 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7a34a03db60bf60042242d6a556fc3be119046a5","analyzedAt":"2026-08-25T21:25:25.994Z","schemaVersion":2},"datasetVersion":"2026-08-26T02:17:13.382Z"}