Skip to content

[New Sample] Add "swin_t" Model Computational Graph#653

Open
ClaireJunc wants to merge 1 commit intoPaddlePaddle:developfrom
ClaireJunc:feature/add-swin-t-sample
Open

[New Sample] Add "swin_t" Model Computational Graph#653
ClaireJunc wants to merge 1 commit intoPaddlePaddle:developfrom
ClaireJunc:feature/add-swin-t-sample

Conversation

@ClaireJunc
Copy link

@ClaireJunc ClaireJunc commented Mar 1, 2026

Summary

  • Add swin_t (Swin Transformer Tiny) computation graph extracted from torchvision
  • Add extraction script graph_net/test/swin_t_extract_test.py
  • Validated with graph_net.torch.validate — all constraints passed

Details

Model: swin_t
Framework: PyTorch
Dependency: torchvision
Content: Extract the Swin Transformer Tiny (swin_t) computation graph using torchvision with static shape mode (dynamic=False). Input shape is standard ImageNet (1, 3, 224, 224), output shape (1, 1000). The extraction script and sample files are included.

Test plan

  • Extraction script runs successfully
  • graph_net.torch.validate --model-path passes all Dataset Construction Constraints
  • graph_hash.txt generated with unique hash
  • Sample directory contains all required files: model.py, weight_meta.py, input_meta.py, input_tensor_constraints.py, graph_net.json, graph_hash.txt

… from torchvision

- Extract swin_t computation graph using torchvision with static shape mode
- Add extraction script at graph_net/test/swin_t_extract_test.py
- Validated with graph_net.torch.validate (passed all constraints)

Model: swin_t
Framework: PyTorch
Dependency: torchvision
Made-with: Cursor
@paddle-bot
Copy link

paddle-bot bot commented Mar 1, 2026

Thanks for your contribution!

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@paddle-bot paddle-bot bot added the contributor External developers label Mar 1, 2026
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Mar 2, 2026
@luotao1
Copy link
Collaborator

luotao1 commented Mar 2, 2026

请签署CLA,修复CodeStyle流水线

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

Labels

contributor External developers HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants