Skip to content

Remove obsolete FIXME in autoaugment.py#9496

Open
joannemiki57 wants to merge 1 commit into
pytorch:mainfrom
joannemiki57:chore/remove-autoaugment-fixme
Open

Remove obsolete FIXME in autoaugment.py#9496
joannemiki57 wants to merge 1 commit into
pytorch:mainfrom
joannemiki57:chore/remove-autoaugment-fixme

Conversation

@joannemiki57
Copy link
Copy Markdown

@joannemiki57 joannemiki57 commented May 22, 2026

Summary

Removes the FIXME comment at torchvision/transforms/autoaugment.py:103:

# FIXME: Eliminate copy-pasted code for fill standardization and _augmentation_space() by moving stuff on a base class

The FIXME proposed extracting a shared _AutoAugmentBase to deduplicate the fill-standardization logic that AutoAugment, RandAugment, TrivialAugmentWide, and AugMix each implement in v1. The v2 transforms in torchvision/transforms/v2/_auto_augment.py already have this base class, so the refactor only ever made sense for v1.

Per maintainer guidance in #9447:

We won't be merging the changes in this PR as-is, since we're focusing on V2 going forward and aren't planning to make further changes to V1. [...] If you update this PR to only remove the FIXME comment and adjust the PR description accordingly, I'm happy to approve and merge it.

Since #9447 has been inactive for over a month after that follow-up, opening this as a minimal alternative that matches exactly what the maintainer asked for: removing the FIXME to reflect that the refactor will not be done in v1. Happy to defer to #9447 if it becomes active again.

Changes

  • Delete one comment line in torchvision/transforms/autoaugment.py. No code or behavior changes.

Closes #9446.

Test plan

  • Confirmed the change is comment-only — no Python source, no behavior, no tests affected.

The FIXME above AutoAugment proposed extracting a shared _AutoAugmentBase
to deduplicate fill standardization across the v1 AutoAugment, RandAugment,
TrivialAugmentWide, and AugMix classes. Per maintainer guidance in pytorch#9447,
v1 transforms are in maintenance mode and v2 (which already has
_AutoAugmentBase) is where new work happens, so this refactor will not be
done in v1. Removing the FIXME to reflect that decision.

Closes pytorch#9446.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 22, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9496

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

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

@meta-cla
Copy link
Copy Markdown

meta-cla Bot commented May 22, 2026

Hi @joannemiki57!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla
Copy link
Copy Markdown

meta-cla Bot commented May 22, 2026

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla Bot added the cla signed label May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor autoaugment.py: extract _AutoAugmentBase to eliminate duplicated fill logic

1 participant