Skip to content

[FX] Redundant sanity test is removed#4080

Merged
AlexanderDokuchaev merged 1 commit into
openvinotoolkit:developfrom
daniil-lyakhov:dl/fx/remove_sanity
May 19, 2026
Merged

[FX] Redundant sanity test is removed#4080
AlexanderDokuchaev merged 1 commit into
openvinotoolkit:developfrom
daniil-lyakhov:dl/fx/remove_sanity

Conversation

@daniil-lyakhov
Copy link
Copy Markdown
Collaborator

@daniil-lyakhov daniil-lyakhov commented May 18, 2026

Changes

Redundant sanity test is removed from TorchFX pre-commit.
The https://github.com/openvinotoolkit/nncf/blob/develop/examples/post_training_quantization/torch_fx/resnet18/main.py example covers the torch.compile test in similar fashion

Reason for changes

To remove redundant code

Related tickets

CVS-178803

Tests

Copilot AI review requested due to automatic review settings May 18, 2026 12:31
@daniil-lyakhov daniil-lyakhov requested a review from a team as a code owner May 18, 2026 12:31
@github-actions github-actions Bot added the NNCF PT Pull requests that updates NNCF PyTorch label May 18, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the TorchFX “sanity” test (and its TinyImageNet dataset helper) that exercised torch.compile(..., backend="openvino"), with the stated intent of eliminating redundant pre-commit coverage.

Changes:

  • Deleted tests/torch/fx/test_sanity.py (TorchFX compile/quantization sanity test).
  • Removed TinyImagenetDatasetManager and related dataset/download dependencies from tests/torch/fx/helpers.py.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
tests/torch/fx/test_sanity.py Removes the TorchFX sanity test that ran quantization + torch.compile with the OpenVINO backend.
tests/torch/fx/helpers.py Drops TinyImageNet dataset manager utilities and related imports from TorchFX test helpers.

Comment thread tests/torch/fx/helpers.py
Comment on lines 13 to 17
import torch.fx
import torch.nn.parallel
import torch.utils.data
import torchvision.datasets as datasets
import torchvision.transforms as transforms
from fastdownload import FastDownload
from torch.fx.passes.graph_drawer import FxGraphDrawer

from nncf.experimental.torch.fx.transformations import apply_quantization_transformations
Comment thread tests/torch/fx/helpers.py Outdated
from pathlib import Path

import torch.fx
import torch.nn.parallel
Comment thread tests/torch/fx/helpers.py
Comment on lines 28 to 30
def visualize_fx_model(model: torch.fx.GraphModule, output_svg_path: str):
g = FxGraphDrawer(model, output_svg_path)
g.get_dot_graph().write_svg(output_svg_path)
@AlexanderDokuchaev AlexanderDokuchaev merged commit 1f230b7 into openvinotoolkit:develop May 19, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NNCF PT Pull requests that updates NNCF PyTorch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants