keras-team/keras · error · NotImplementedError

`fit` is not supported with openvino backend

Error message

`fit` is not supported with openvino backend

What it means

Raised by the OpenVINO trainer's fit method. Training is not implemented for the OpenVINO backend (inference-oriented), so calling fit is a sentinel NotImplementedError.

Solutions

  1. Train the model with the TensorFlow/JAX/PyTorch backend, then export/convert for OpenVINO inference
  2. Use model.predict for OpenVINO inference workflows
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at keras/src/backend/openvino/trainer.py:230 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/58886bb143d3165c. Report an issue: GitHub.

Appendix: source

Thrown at keras/src/backend/openvino/trainer.py:230

        self,
        x=None,
        y=None,
        batch_size=None,
        epochs=1,
        verbose="auto",
        callbacks=None,
        validation_split=0.0,
        validation_data=None,
        shuffle=True,
        class_weight=None,
        sample_weight=None,
        initial_epoch=0,
        steps_per_epoch=None,
        validation_steps=None,
        validation_batch_size=None,
        validation_freq=1,
    ):
        raise NotImplementedError(
            "`fit` is not supported with openvino backend"
        )

    @traceback_utils.filter_traceback
    def predict(
        self, x, batch_size=None, verbose="auto", steps=None, callbacks=None
    ):
        # Create an iterator that yields batches of input data.
        epoch_iterator = EpochIterator(
            x=x,
            batch_size=batch_size,
            steps_per_epoch=steps,
            shuffle=False,
            steps_per_execution=self.steps_per_execution,
        )

        # Container that configures and calls callbacks.
        if not isinstance(callbacks, callbacks_module.CallbackList):

View on GitHub (pinned to 7a34a03db6)