Incorrect tf.nn.max_pool2d outputs for NCHW and NHWC in the same thread.
Hi @API92 ,

Thanks for reporting the issue. I have replicated the reported error with intel-tensorflow and attached the [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/54451b7df0eb418cb83e2f2739101cf0/61482_mkl_maxpool_cache.ipynb) here.

I have cross checked the same code with TF built binaries and its working fine.Attached [gist](https://colab.sandbox.google.com/gist/SuryanarayanaY/a922b3444b47697fca239c2d5b541d7d/61482_tfbuilt-gpu.ipynb) for reference.

This confirms the issue is specific to intel-tensorflow. Hence tagging @TensorFlow-MKL team for comments.

Thanks for the PR ! @API92 
We will check and feedback soon! @API92 
This issue appears in TF 2.13 only. 
Please use TF .2.12.

We will report to dev team to fix it as soon.

Thank you! The fix is in https://github.com/tensorflow/tensorflow/pull/62819, and it should be in next TF release version.

### Issue type

Bug

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

Yes

### Source

binary

### TensorFlow version

2.13

### Custom code

No

### OS platform and distribution

Ubuntu 22.04

### Mobile device

_No response_

### Python version

3.10

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

There is an incorrect output of tf.nn.max_pool2d when calling with the input of the same batch size, height, width and depth first in NCHW, then in NHWC format with MKL support. \
Output of tf.nn.max_pool2d on the same input (except data format) must be the same (except data format).

### Standalone code to reproduce the issue

Colab to reproduce https://colab.research.google.com/drive/1Vuo7txDPDq-YXAuCFQcPNowHgOwbT7Oi?usp=sharing



### Relevant log output

_No response_