Skip to content

Commit

Permalink
Use the proper title for example (keras-team#1346)
Browse files Browse the repository at this point in the history
* Use the proper title for example

Otherwise it won't be rendered correctly by the [`TFKerasDocumentationGenerator`](https://github.com/keras-team/keras-io/blob/fc340b9989cdf17fba44e66efa22758afad39b87/scripts/docstrings.py#L27-L28)

* more fixes
  • Loading branch information
Philmod authored Dec 5, 2023
1 parent d041dcf commit caec1fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keras_nlp/models/deberta_v3/deberta_v3_backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class DebertaV3Backbone(Backbone):
bucket_size: int. The size of the relative position buckets. Generally
equal to `max_sequence_length // 2`.
Example usage:
Example:
```python
input_data = {
"token_ids": np.ones(shape=(1, 12), dtype="int32"),
Expand Down
2 changes: 1 addition & 1 deletion keras_nlp/models/gpt2/gpt2_backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class GPT2Backbone(Backbone):
sequence length. This determines the variable shape for positional
embeddings.
Example usage:
Example:
```python
input_data = {
"token_ids": np.ones(shape=(1, 12), dtype="int32"),
Expand Down

0 comments on commit caec1fc

Please sign in to comment.