error using the Dispatch 
@MXA404. To troubleshoot the issue further, we need more information about the custom code that is causing the error. Can you provide the relevant code snippet that is causing the error? Additionally, please provide any relevant details about the inputs and expected behavior of the code, as well as any steps that you have already taken to try and solve the issue. @MXA404,
Could you please provide the complete code to debug the issue and also it looks like you are overriding **__call__** directly instead of the call method, which is what subclasses of Layer should override (see [Layer docs](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Layer))

And also there is a clean way of preventing accidental override of __call__ because there are valid use cases for overriding it.

Please take a look through the [Layer docs](https://www.tensorflow.org/api_docs/python/tf/keras/layers/Layer#call) and between the docstrings about **call and __call__** and the examples, I guess there is currently sufficient guidance toward overriding call for use cases like this one.
Thank you! 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/59933">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/59933">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

No

### Source

source

### Tensorflow Version

tf 2.11

### Custom Code

Yes

### OS Platform and Distribution

_No response_

### Mobile device

_No response_

### Python version

3.9.16

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

```shell
A bug happened!
```


### Standalone code to reproduce the issue

```shell
in op_dispatch_handler
    result = api_dispatcher.Dispatch(args, kwargs)
TypeError: Got an unexpected keyword argument 'dim'
```


### Relevant log output

_No response_</details>