Performing additional computations on encrypted inference

I’d like to be able to perform additional homomorphic operations, for example for testing purposes just a simple add or subtraction, to the outcome of the execution/inference of a concreteML model’s FHE circuit. To be more concrete, taking the page of “Prediction with FHE” in the docs, I would like to do execute an additional circuit utilizing the output of “fhe_circuit.run(q_input_enc)”.

From previous topics I suspect that a module from the Concrete side might suffice here, yet I wondered if there was a simpler option such that I do not mix Concrete and ConcreteML syntax.

I suggest looking at modules:

You could build a module containing the Concrete ML model inference function and a second function that takes the model output, and applies additional processing on top of it.