keras-team/keras · error · NotImplementedError

`track` is not implemented in the numpy backend.

Error message

`track` is not implemented in the numpy backend.

What it means

NotImplementedError from NumpyExportArchive.track: the export/model-saving archive API exists per backend, but the NumPy backend provides no implementation of track (registering a tracked resource/variable for export). Calling it on this backend is an explicit unsupported-operation sentinel, not a bug in the arguments.

Solutions

  1. Use the TensorFlow backend (TFExportArchive via keras.export.ExportArchive) when exporting models
  2. Skip export functionality when running under the NumPy backend
  3. Check the backend with keras.backend.backend() before calling export APIs
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at keras/src/backend/numpy/export.py:3 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of keras-team/keras@7a34a03db6 (2026-08-25). Data as JSON: /api/errors/23d4c281eb91202c. Report an issue: GitHub.

Appendix: source

Thrown at keras/src/backend/numpy/export.py:3

class NumpyExportArchive:
    def track(self, resource):
        raise NotImplementedError(
            "`track` is not implemented in the numpy backend."
        )

    def add_endpoint(self, name, fn, input_signature=None, **kwargs):
        raise NotImplementedError(
            "`add_endpoint` is not implemented in the numpy backend."
        )

View on GitHub (pinned to 7a34a03db6)