Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Added doctests for SwiftFormer model#42527

Open
ankitmalakar7 wants to merge 2 commits into
huggingface:mainfrom
ankitmalakar7:add-swiftformer-doctests
Open

Added doctests for SwiftFormer model#42527
ankitmalakar7 wants to merge 2 commits into
huggingface:mainfrom
ankitmalakar7:add-swiftformer-doctests

Conversation

@ankitmalakar7

@ankitmalakar7 ankitmalakar7 commented Dec 1, 2025

Copy link
Copy Markdown

What does this PR do?

This PR adds documentation tests for SwiftFormerModel and SwiftFormerForImageClassification as part of the Doc Tests Sprint (#16292).

The doctests include examples for:

  • SwiftFormerModel.forward() - Showing how to get hidden states
  • SwiftFormerForImageClassification.forward() - Showing image classification

Fixes #16292 (SwiftFormerModel & SwiftFormerForImageClassification)

Before submitting

Who can review?

@yonigozlan @molbap @NielsRogge

@github-actions

github-actions Bot commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: swiftformer

Removed unnecessary blank lines in example code.
@ankitmalakar7

Copy link
Copy Markdown
Author

@Rocketknight1 can you please review it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Community Event] Doc Tests Sprint

1 participant