{"record":{"id":"a739581ccd2557d9","repo":"keras-team/keras","slug":"add-endpoint-is-not-implemented-in-the-numpy-bac","errorCode":null,"errorMessage":"`add_endpoint` is not implemented in the numpy backend.","messagePattern":"`add_endpoint` is not implemented in the numpy backend\\.","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/numpy/export.py","lineNumber":8,"sourceCode":"class NumpyExportArchive:\n    def track(self, resource):\n        raise NotImplementedError(\n            \"`track` is not implemented in the numpy backend.\"\n        )\n\n    def add_endpoint(self, name, fn, input_signature=None, **kwargs):\n        raise NotImplementedError(\n            \"`add_endpoint` is not implemented in the numpy backend.\"\n        )\n","sourceCodeStart":1,"sourceCodeEnd":11,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/numpy/export.py#L1-L11","documentation":"NotImplementedError from NumpyExportArchive.add_endpoint: registering a named serving endpoint (function + input signature) is unimplemented in the NumPy backend. The class intentionally stubs the ExportArchive API, so any add_endpoint call under this backend raises immediately.","triggerScenarios":"Thrown at keras/src/backend/numpy/export.py:8 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Switch to the TensorFlow backend and use keras.export.ExportArchive to add serving endpoints","Serialize NumPy-backend models manually (e.g. np.save of weights plus custom loader code)","Guard export code paths so they only run when backend() != \"numpy\""],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7a34a03db60bf60042242d6a556fc3be119046a5","analyzedAt":"2026-08-25T21:25:25.994Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}