How to execute only 1 of multiple independent inputs/outputs in one model in TensorflowJS

Hello,

I have a model that has multiple independent inputs/outputs. I want to execute just 1 of them and read the corresponding output. But TensorflowJS complains that I have to fill all of the inputs:

Uncaught Error: Cannot compute the outputs [output_classification1/output_node, output_classification2/output_node, output_classification3/output_node]. 
Missing the following inputs: [input_classification2/input_node, input_classification3/input_node]

Is it not possible to have multiple independent inputs in the model and execute with only 1 filled to get the corresponding output?

Note: The inputs/outputs are independent.

Thanks!

HI @davlhd ,

I Apologies for the late response.

Could you please provide a small, reproducible code snippet to help us replicate the issue on our end?

From the error, it appears that your model has been trained with multiple (3) inputs, which is why it expects all input values for the prediction and returns 3 outputs.

you can check the expected input length by model.inputs.length.

Thank You!!