Skip to content

Commit aa1f650

Browse files
Mohsin Mohammadfacebook-github-bot
authored andcommitted
[racer] Remove unused import check_type in torchvision transforms v2 __init__.py
Summary: ## Instructions about RACER Diffs: You will receive **FULL CREDIT** (ETS) for this diff if you either: - [**Recommended**]Commandeer and land this diff Once landed, feel free to claim the associated task and the EYS project. This diff is removing the unused imports from Code Quality Score from [Monetization codehub](https://fburl.com/quality/58ozwacb): - Accept and ship the diff (racer do not do auto land) - [**Recommended**]Commandeer and land this diff. If you are happy with the changes, please accept and ship, or commandeer it if minor edits are needed. If you are not happy with the changes, please comment on the diff with clear actions and send it back to the author. Racer will pick it up and re-generage. If you really feel the Racer is not helping with this change (alas, some complex changes are hard for AI) feel free to abandon this diff. This diff was pre-created by Racer AI agent for your convenience on top of T228488342. More details about the program see this [post](https://fb.workplace.com/groups/1177219810659335/permalink/1198503531864296/). For questions or suggestions please post in [RACER Feedback and Q&A](https://fb.workplace.com/groups/2477474979269093) group. ## Summary: This diff removes an unused import `check_type` from torchvision/transforms/v2/__init__.py. The import was flagged by Flake8 rule F401 as unused. The function is properly imported directly in the files that actually use it. --- > Generated by [RACER](https://www.internalfb.com/wiki/RACER_(Risk-Aware_Code_Editing_and_Refactoring)/), powered by [Confucius](https://www.internalfb.com/wiki/Confucius/Analect/Shared_Analects/Confucius_Code_Assist_(CCA)/) [Session](https://www.internalfb.com/confucius?session_id=70160afb-53d7-11f0-bd46-96ee50c397ac&tab=Chat), [Trace](https://www.internalfb.com/confucius?session_id=70160afb-53d7-11f0-bd46-96ee50c397ac&tab=Trace) Differential Revision: D77123398 fbshipit-source-id: c4279609ef695298d5f5a1028a0cdf3c988356b8
1 parent 8cd2ffc commit aa1f650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms/v2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555
)
5656
from ._temporal import UniformTemporalSubsample
5757
from ._type_conversion import PILToTensor, ToImage, ToPILImage, ToPureTensor
58-
from ._utils import check_type, get_bounding_boxes, has_all, has_any, query_chw, query_size
58+
from ._utils import get_bounding_boxes, has_all, has_any, query_chw, query_size
5959

6060
from ._deprecated import ToTensor # usort: skip

0 commit comments

Comments
 (0)