Skip to content

Commit

Permalink
Fixed typo in comments/documentation for Pipelines documentation (#30170
Browse files Browse the repository at this point in the history
)

Update feature_extraction.py - Fixed typo in comments/documentation
  • Loading branch information
DamonGuzman authored Apr 10, 2024
1 parent d71f5b3 commit a5e5c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/pipelines/feature_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FeatureExtractionPipeline(Pipeline):
>>> extractor = pipeline(model="google-bert/bert-base-uncased", task="feature-extraction")
>>> result = extractor("This is a simple test.", return_tensors=True)
>>> result.shape # This is a tensor of shape [1, sequence_lenth, hidden_dimension] representing the input string.
>>> result.shape # This is a tensor of shape [1, sequence_length, hidden_dimension] representing the input string.
torch.Size([1, 8, 768])
```
Expand Down

0 comments on commit a5e5c92

Please sign in to comment.