Skip to content

Commit

Permalink
TF - Fix convnext classification example (huggingface#17261)
Browse files Browse the repository at this point in the history
  • Loading branch information
gante authored and elusenji committed Jun 12, 2022
1 parent f005bca commit d519e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/convnext/modeling_tf_convnext.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def call(
>>> image = Image.open(requests.get(url, stream=True).raw)
>>> feature_extractor = ConvNextFeatureExtractor.from_pretrained("facebook/convnext-tiny-224")
>>> model = TFViTForImageClassification.from_pretrained("facebook/convnext-tiny-224")
>>> model = TFConvNextForImageClassification.from_pretrained("facebook/convnext-tiny-224")
>>> inputs = feature_extractor(images=image, return_tensors="tf")
>>> outputs = model(**inputs)
Expand Down

0 comments on commit d519e22

Please sign in to comment.