Skip to content

Comments

Improving tv_tensors wrap API for extensibility.#9398

Open
gabrielfruet wants to merge 2 commits intopytorch:mainfrom
gabrielfruet:feat/extend-wrap
Open

Improving tv_tensors wrap API for extensibility.#9398
gabrielfruet wants to merge 2 commits intopytorch:mainfrom
gabrielfruet:feat/extend-wrap

Conversation

@gabrielfruet
Copy link
Contributor

@gabrielfruet gabrielfruet commented Feb 20, 2026

Addresses #9333

Adopt a method-based wrapping, enabling user to extend functionality on subclasses of TVTensor.

This is the pythonic approach, since we have many built-ins that rely on this on pattern (e.g len, iter, next ...)

This does not break backwards compatibility.

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 20, 2026

🔗 Helpful Links

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

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 meta-cla bot added the cla signed label Feb 20, 2026
@gabrielfruet gabrielfruet changed the title Improving tv_tensors wrap API for extensability. Improving tv_tensors wrap API for extensibility. Feb 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.

1 participant