Skip to content

Added the vision_transformer.py file which fixes the issue #13326 #14986

Added the vision_transformer.py file which fixes the issue #13326

Added the vision_transformer.py file which fixes the issue #13326 #14986

Triggered via pull request October 8, 2025 13:44
@NANDAGOPALNGNANDAGOPALNG
synchronize #13331
master
Status Failure
Total duration 17s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (N806): computer_vision/vision_tranformer.py#L104
computer_vision/vision_tranformer.py:104:12: N806 Variable `N` in function should be lowercase
Ruff (N806): computer_vision/vision_tranformer.py#L104
computer_vision/vision_tranformer.py:104:9: N806 Variable `B` in function should be lowercase
Ruff (F401): computer_vision/vision_tranformer.py#L20
computer_vision/vision_tranformer.py:20:8: F401 `math` imported but unused
Ruff (F401): computer_vision/vision_tranformer.py#L19
computer_vision/vision_tranformer.py:19:30: F401 `typing.Tuple` imported but unused
Ruff (F401): computer_vision/vision_tranformer.py#L19
computer_vision/vision_tranformer.py:19:20: F401 `typing.Optional` imported but unused
Ruff (UP035): computer_vision/vision_tranformer.py#L19
computer_vision/vision_tranformer.py:19:1: UP035 `typing.Tuple` is deprecated, use `tuple` instead
Ruff (N812): computer_vision/vision_tranformer.py#L17
computer_vision/vision_tranformer.py:17:8: N812 Lowercase `functional` imported as non-lowercase `F`
Ruff (PLR0402): computer_vision/vision_tranformer.py#L16
computer_vision/vision_tranformer.py:16:8: PLR0402 Use `from torch import nn` in lieu of alias
Ruff (I001): computer_vision/vision_tranformer.py#L15
computer_vision/vision_tranformer.py:15:1: I001 Import block is un-sorted or un-formatted
Ruff (E501): computer_vision/vision_tranformer.py#L5
computer_vision/vision_tranformer.py:5:89: E501 Line too long (109 > 88)