"src/vscode:/vscode.git/clone" did not exist on "e3952ecacd5b8fbef954b2c5d587dbeac3679164"
Unverified Commit a5e5c92a authored by DamonGuzman's avatar DamonGuzman Committed by GitHub
Browse files

Fixed typo in comments/documentation for Pipelines documentation (#30170)

Update feature_extraction.py - Fixed typo in comments/documentation
parent d71f5b3e
...@@ -24,7 +24,7 @@ class FeatureExtractionPipeline(Pipeline): ...@@ -24,7 +24,7 @@ class FeatureExtractionPipeline(Pipeline):
>>> extractor = pipeline(model="google-bert/bert-base-uncased", task="feature-extraction") >>> extractor = pipeline(model="google-bert/bert-base-uncased", task="feature-extraction")
>>> result = extractor("This is a simple test.", return_tensors=True) >>> 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]) torch.Size([1, 8, 768])
``` ```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment