Model.add_loss is not documented
@piyushsrv The Model page doesn't explicitly mention add_loss, you can still use it on a Model object because it inherits from Layer. Model inherits from Layer in Keras. This means it gets all the methods and properties of the Layer by default. You can refer to the Layer.add_loss documentation for details on how it works: https://www.tensorflow.org/api_docs/python/tf/keras/losses.
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/65160">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/65160">No</a>

### Issue type

Documentation Bug

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

No

### Source

binary

### TensorFlow version

2.16.1

### Custom code

Yes

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

In the documentation of `tf.keras.Model` as available at https://www.tensorflow.org/api_docs/python/tf/keras/Model, the method `Model.add_loss` has been used in the example code for the method `compute_loss`. However, the method `Model.add_loss` itself has not been documented on this page.

 The `keras` documentation provides some documentation for `Layer.add_loss`, but I couldn't find any documentation even there for `Model.add_loss`.

### Standalone code to reproduce the issue

```shell
This is a missing documentation issue, so there is no code.
```


### Relevant log output

_No response_