Not getting the same result when using .tflite in C and Python.
Hi @saad-koukous 

Can you provide more details like the code for handling input and output in both cases ( in python and c)  and also the model execution code? Hi @sawantkumar, Thank you for your response. However, I can't share the .tflite model and data.
but i can share with you how i'm allocating input tensor and output tensor.
**interprater method:**
```
// Allocate tensors
    if (TfLiteInterpreterAllocateTensors(interpreter) != kTfLiteOk) {
        fprintf(stderr, "Failed to allocate tensors\n");
        return 1;
    }
const TfLiteTensor* input_tensor = TfLiteInterpreterGetInputTensor(interpreter, 0);
//and here i'm looping on a file to load data in the input_tensor
```
**Signature Runner method** 

```
// Allocate tensors
    if (TfLiteSignatureRunnerAllocateTensors(signature_runner) != kTfLiteOk) {
        fprintf(stderr, "Failed to allocate tensors\n");
        return 1;
    const char *signature_inputName = TfLiteSignatureRunnerGetInputName(signature_runner, 0);
    printf("Signature input name: %s\n", signature_inputName);
    }
    TfLiteTensor *input_tensor = TfLiteSignatureRunnerGetInputTensor(signature_runner, signature_inputName);
    //and here i'm looping on a file to load data in the input_tensor
```
**python**

```
interpreter.allocate_tensors()
signature = interpreter.get_signature_runner('signature_name')
infe = serving_default(input=input) #same input of the c program
output = infe['output']
``` Hi @saad-koukous ,

Can you provide me with some more details like what kind of model this is, an object detection or some nlp model, what do you mean when you say you don't get the same output?  Also if you can let me what specific layers are being used and what activation functions are being used in your tflite model, it will  be easier for me to debug the issue. Hi @sawantkumar,
The model is designed for image segmentation, and when I input the same data into the TensorFlow Lite model using both Python and the C API, I'm not getting the same results at all; in fact, the results are significantly different.
the input is a matrix where elements are float32. Hi @saad-koukous , 

Thanks for the information, let me replicate the issue and i will get back to you.
### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

2.17.0

### Custom code

Yes

### OS platform and distribution

Ubuntu 22.04.4 LTS

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

bazel 6.5.0

### GCC/compiler version

gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

When I run inferences using the TFLite model in Python, I get the correct output. However, when using the C API, I'm not getting the same output, whether using the interpreter or signature runner.

### Standalone code to reproduce the issue

```shell
information about the model in with the c_api:
Signature count: 1
Signature key: serving_default
Input count: 1
Output count: 2
Signature input name: input
Signature output name: 64
Input tensor:
Number of dimensions: 4
Dimensions: 1 x 3 x 40 x 180
```


### Relevant log output

_No response_