Skip to content

Conversation

@AdrianLundell
Copy link
Collaborator

@AdrianLundell AdrianLundell commented Feb 10, 2025

Some stages in the TestPipeline may be added multiple times, such as .check(). To be able to target these by id, give them an unique suffix -> 'id.suffix' Refering to stages in terms of id instead of an index is more self documenting and future proof.

This change modifies the add/pop_stage interface:

  • pos arg in add_stage is now an optional kwarg, appending to the pipline as default
  • suffix is added to add_stage as an optional_kwarg. If a suffix is not given to a non unique stage, a number is added instead.
  • pop_stage now allows to use ids for referring to stages.

Additionally adds .visualize(stage) for quickly adding visualizing stages to the pipeline.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

Some stages in the TestPipeline may be added multiple times, such as .check(). To be able to target these by id, give them an unique suffix -> 'id.suffix'
Refering to stages in terms of id instead of an index is more self documenting and future proof.

This change modifies the add/pop_stage interface:
  - pos arg in add_stage is now an optional kwarg, appending to the pipline as default
  - suffix is added to add_stage as an optional_kwarg. If a suffix is not given to a non unique stage, a number is added instead.
  - pop_stage now allows to use ids for referring to stages.

Additionally adds .visualize(stage) for quickly adding visualizing stages to the pipeline.

Change-Id: If649a19096ddee6b2eca2c8aa735b54ca7eea3e8
@AdrianLundell AdrianLundell added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk topic: not user facing labels Feb 10, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 10, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/8338

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 Cancelled Job

As of commit 602b9c9 with merge base 5aa0ee2 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 10, 2025
@zingo
Copy link
Collaborator

zingo commented Feb 11, 2025

MacOs fails seems unrealted

@zingo zingo merged commit 93c3b66 into pytorch:main Feb 11, 2025
107 of 108 checks passed
@AdrianLundell AdrianLundell deleted the change-989421 branch February 11, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants