`Check Failed` in `tf.raw_ops.FakeQuantWithMinMaxVarsPerChannel` and `tf.quantization.fake_quant_with_min_max_vars_per_channel` when the input of `inputs` is scalar.
Hi **@xl1043237213** ,

I don't have access to open your colab code. Could you please provide proper link or access to present link.

Thank you! I'm sorry, I've changed the access permission now. @Venkat6871  Hi **@xl1043237213** ,

I tried to run your code on colab using TF v2.16.1, nightly and faced the same issue. Please find the [gist](https://colab.sandbox.google.com/gist/Venkat6871/cf6cd93274c851b32722e3c4a5200516/65728_2-16-1-nighly-v.ipynb) here for reference.

Thank you!
### Issue type

Bug

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

Yes

### Source

binary

### TensorFlow version

tf 2.15

### Custom code

No

### OS platform and distribution

Linux Ubuntu 20.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?

`Check Failed` in `tf.raw_ops.FakeQuantWithMinMaxVarsPerChannel` and  `tf.quantization.fake_quant_with_min_max_vars_per_channel` when the input of `inputs` is scalar, which causes the program to crash. See the colab link below for details.

### Standalone code to reproduce the issue

```shell
https://colab.research.google.com/drive/1ydn7hiGhj5xFypCmJPZ410gmboo0Edji#scrollTo=NfIGXCwpS1Dr
```


### Relevant log output

```shell
Check failed: d >= 0 (0 vs. -1)
```
