FPE in Conv2d
Hi I'm getting a different error, can you ensure you have built your benchmark_model executable with more recent code? and your file is uploaded correctly?

```
./benchmark_model --graph=Conv2d_FPE.tflite
2023-09-22 20:16:04.234199: I tensorflow/tools/benchmark/benchmark_model.cc:475] Graph: [Conv2d_FPE.tflite]
2023-09-22 20:16:04.234281: I tensorflow/tools/benchmark/benchmark_model.cc:476] Init ops:
2023-09-22 20:16:04.234289: I tensorflow/tools/benchmark/benchmark_model.cc:477] Input layers: [input:0]
2023-09-22 20:16:04.234294: I tensorflow/tools/benchmark/benchmark_model.cc:478] Input shapes: [1,224,224,3]
2023-09-22 20:16:04.234298: I tensorflow/tools/benchmark/benchmark_model.cc:479] Input types: [float]
2023-09-22 20:16:04.234302: I tensorflow/tools/benchmark/benchmark_model.cc:480] Output layers: [output:0]
2023-09-22 20:16:04.234315: I tensorflow/tools/benchmark/benchmark_model.cc:481] Target layers: []
2023-09-22 20:16:04.234352: I tensorflow/tools/benchmark/benchmark_model.cc:482] Num runs: [1000]
2023-09-22 20:16:04.234371: I tensorflow/tools/benchmark/benchmark_model.cc:483] Inter-inference delay (seconds): [-1.0]
2023-09-22 20:16:04.234381: I tensorflow/tools/benchmark/benchmark_model.cc:484] Inter-benchmark delay (seconds): [-1.0]
2023-09-22 20:16:04.234411: I tensorflow/tools/benchmark/benchmark_model.cc:486] Num threads: [-1]
2023-09-22 20:16:04.234570: I tensorflow/tools/benchmark/benchmark_model.cc:487] Benchmark name: []
2023-09-22 20:16:04.234592: I tensorflow/tools/benchmark/benchmark_model.cc:488] Output prefix: []
2023-09-22 20:16:04.234606: I tensorflow/tools/benchmark/benchmark_model.cc:489] Show sizes: [0]
2023-09-22 20:16:04.234620: I tensorflow/tools/benchmark/benchmark_model.cc:490] Warmup runs: [1]
2023-09-22 20:16:04.234634: I tensorflow/tools/benchmark/benchmark_model.cc:256] Loading TensorFlow.
2023-09-22 20:16:04.234664: I tensorflow/tools/benchmark/benchmark_model.cc:264] Got config, 0 devices
2023-09-22 20:16:04.234793: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.GraphDef: 1:1: Invalid control characters encountered in text.
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.GraphDef: 1:9: Invalid control characters encountered in text.
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.GraphDef: 1:33: Interpreting non ascii codepoint 140.
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.GraphDef: 1:33: Message type "tensorflow.GraphDef" has no field named "TFL3".
2023-09-22 20:16:04.244530: E tensorflow/tools/benchmark/benchmark_model.cc:275] Could not create TensorFlow Graph: DATA_LOSS: Can't parse Conv2d_FPE.tflite as text proto
2023-09-22 20:16:04.244570: I tensorflow/tools/benchmark/benchmark_model.cc:502] Initialized session in 0.009926s
``` This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61902">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/61902">No</a>
 > ```shell
> ./benchmark_model --graph=../poc/Conv2d_FPE.tflite
> ```

I'm sorry for the delayed response. I don't think it's a Bazel version issue. It's possible that the way I'm building differs from yours.

I'm using the build method recommended in [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build
cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model

The benchmark is in the tools directory
I still encounter the same issue in the latest code, commit id: abbbcb50208cf6d5a965b7bf60efec5bb078e142.

 > Hi I'm getting a different error, can you ensure you have built your benchmark_model executable with more recent code? and your file is uploaded correctly?
> 
> ```
> ./benchmark_model --graph=Conv2d_FPE.tflite
> 2023-09-22 20:16:04.234199: I tensorflow/tools/benchmark/benchmark_model.cc:475] Graph: [Conv2d_FPE.tflite]
> 2023-09-22 20:16:04.234281: I tensorflow/tools/benchmark/benchmark_model.cc:476] Init ops:
> 2023-09-22 20:16:04.234289: I tensorflow/tools/benchmark/benchmark_model.cc:477] Input layers: [input:0]
> 2023-09-22 20:16:04.234294: I tensorflow/tools/benchmark/benchmark_model.cc:478] Input shapes: [1,224,224,3]
> 2023-09-22 20:16:04.234298: I tensorflow/tools/benchmark/benchmark_model.cc:479] Input types: [float]
> 2023-09-22 20:16:04.234302: I tensorflow/tools/benchmark/benchmark_model.cc:480] Output layers: [output:0]
> 2023-09-22 20:16:04.234315: I tensorflow/tools/benchmark/benchmark_model.cc:481] Target layers: []
> 2023-09-22 20:16:04.234352: I tensorflow/tools/benchmark/benchmark_model.cc:482] Num runs: [1000]
> 2023-09-22 20:16:04.234371: I tensorflow/tools/benchmark/benchmark_model.cc:483] Inter-inference delay (seconds): [-1.0]
> 2023-09-22 20:16:04.234381: I tensorflow/tools/benchmark/benchmark_model.cc:484] Inter-benchmark delay (seconds): [-1.0]
> 2023-09-22 20:16:04.234411: I tensorflow/tools/benchmark/benchmark_model.cc:486] Num threads: [-1]
> 2023-09-22 20:16:04.234570: I tensorflow/tools/benchmark/benchmark_model.cc:487] Benchmark name: []
> 2023-09-22 20:16:04.234592: I tensorflow/tools/benchmark/benchmark_model.cc:488] Output prefix: []
> 2023-09-22 20:16:04.234606: I tensorflow/tools/benchmark/benchmark_model.cc:489] Show sizes: [0]
> 2023-09-22 20:16:04.234620: I tensorflow/tools/benchmark/benchmark_model.cc:490] Warmup runs: [1]
> 2023-09-22 20:16:04.234634: I tensorflow/tools/benchmark/benchmark_model.cc:256] Loading TensorFlow.
> 2023-09-22 20:16:04.234664: I tensorflow/tools/benchmark/benchmark_model.cc:264] Got config, 0 devices
> 2023-09-22 20:16:04.234793: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
> To enable the following instructions: SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
> [libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.GraphDef: 1:1: Invalid control characters encountered in text.
> [libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.GraphDef: 1:9: Invalid control characters encountered in text.
> [libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.GraphDef: 1:33: Interpreting non ascii codepoint 140.
> [libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:337] Error parsing text-format tensorflow.GraphDef: 1:33: Message type "tensorflow.GraphDef" has no field named "TFL3".
> 2023-09-22 20:16:04.244530: E tensorflow/tools/benchmark/benchmark_model.cc:275] Could not create TensorFlow Graph: DATA_LOSS: Can't parse Conv2d_FPE.tflite as text proto
> 2023-09-22 20:16:04.244570: I tensorflow/tools/benchmark/benchmark_model.cc:502] Initialized session in 0.009926s
> ```

I'm sorry for the delayed response. I don't think it's a Bazel version issue. It's possible that the way I'm building differs from yours.

I'm using the build method recommended in [this official guide](https://www.tensorflow.org/lite/guide/build_cmake#step_1_install_cmake_tool), as follows:
1. git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
2. mkdir tflite_build
cd tflite_build
3. cmake ../tensorflow_src/tensorflow/lite
4. cmake --build . -j
5. cmake --build . -j -t benchmark_model

The benchmark is in the tools directory
I still encounter the same issue in the latest code, commit id: abbbcb50208cf6d5a965b7bf60efec5bb078e142. I was able to replicate with updated steps:

```sh
git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
mkdir tflite_build
cd tflite_build
cmake ../tensorflow_src/tensorflow/lite
cmake --build . -j
cmake --build . -j -t benchmark_model
cd tools/benchmark
cp path/to/Conv2d_FPE.tflite .
./benchmark_model --graph=Conv2d_FPE.tflite
```
```
./benchmark_model --graph=Conv2d_FPE.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [Conv2d_FPE.tflite]
INFO: Loaded model Conv2d_FPE.tflite
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: The input model file size (MB): 0.000708
INFO: Initialized session in 1.411ms.
INFO: Running benchmark for at least 1 iterations and at least 0.5 seconds but terminate if exceeding 150 seconds.
Floating point exception
```

Hi @nutsiepully, can you please take a look? Thanks.
### Issue type

Bug

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

Yes

### Source

source

### TensorFlow version

tf 2.14.0

### Custom code

Yes

### OS platform and distribution

Ubuntu 18.04.6

### Mobile device

Ubuntu 18.04.6

### Python version

Python 3.8.3

### Bazel version

bazel 5.3.0

### GCC/compiler version

gcc 7.5.0

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Construct a malicious Conv2d operator model, so that `stride_width` and `stride_height` are set to 0. In the `eigen_spatial_convolutions-inl.h` file, having the `row_stride` and `col_stride` variables set to 0 leads to a division by zero exception.
```cpp
// eigen_spatial_convolutions-inl.h
SpatialConvolution(const Input& input, const Kernel& kernel,
                   const Index row_stride = 1, const Index col_stride = 1,
                   const PaddingType padding_type = PADDING_SAME,
                   const Index row_in_stride = 1, const Index col_in_stride = 1,
                   const OutputKernel& output_kernel = OutputKernel(),
                   Index padding_top = 0, Index padding_bottom = 0,
                   Index padding_left = 0, Index padding_right = 0) {
      ...
    case PADDING_SAME: {
      eigen_assert(!padding_explicit);
      out_height = divup(InputRows, row_stride);   // FPE
      out_width = divup(InputCols, col_stride);
```

[Conv2d_FPE.zip](https://github.com/tensorflow/tensorflow/files/12655589/Conv2d_FPE.zip)


### Standalone code to reproduce the issue

```shell
When I use the benchmark tool for PoC validation, it causes the TensorFlow Lite inference process to be subjected to a DOS（coredump).


❯ ./benchmark_model --graph=../poc/Conv2d_FPE.tflite
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [../poc/Conv2d_FPE.tflite]
INFO: Loaded model ../poc/Conv2d_FPE.tflite
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: The input model file size (MB): 0.000708
INFO: Initialized session in 31.286ms.
INFO: Running benchmark for at least 1 iterations and at least 0.5 seconds but terminate if exceeding 150 seconds.
[1]    24937 floating point exception (core dumped)  ./benchmark_model --graph=../poc/Conv2d_FPE.tflite
```


### Relevant log output

_No response_