Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"sphinx-markdown-tables>=0.0.15",
"wheel>=0.36.2",
"pytest>=6.0.0",
"flaky>=3.0.0",
"sphinx-rtd-theme",
]

Expand Down
1 change: 1 addition & 0 deletions tests/sparseml/tensorflow_v1/optim/test_analyzer_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def resnet_v2_50(init_weights):
return tf_compat.get_default_graph()


@pytest.mark.flaky
@pytest.mark.skipif(
os.getenv("NM_ML_SKIP_TENSORFLOW_TESTS", False),
reason="Skipping tensorflow_v1 tests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from sparseml.tensorflow_v1.utils import eval_tensor_sparsity, tf_compat


@pytest.mark.flaky
@pytest.mark.parametrize(
("tensor_shape,mask_creator"),
[
Expand Down
3 changes: 3 additions & 0 deletions tests/sparseml/tensorflow_v1/optim/test_mask_pruning.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def test_create_op_pruning_conv(sparsity_val: float, mask_creator: PruningMaskCr
assert sess.run(mask_vals_are_grouped)


@pytest.mark.flaky
@pytest.mark.skipif(
os.getenv("NM_ML_SKIP_TENSORFLOW_TESTS", False),
reason="Skipping tensorflow_v1 tests",
Expand Down Expand Up @@ -391,6 +392,7 @@ def test_apply_op_vars_masks(
assert abs(var_sparsity - sparsity_val) < 1e-2


@pytest.mark.flaky
@pytest.mark.skipif(
os.getenv("NM_ML_SKIP_TENSORFLOW_TESTS", False),
reason="Skipping tensorflow_v1 tests",
Expand Down Expand Up @@ -502,6 +504,7 @@ def _expected_sparsity(
)


@pytest.mark.flaky
@pytest.mark.skipif(
os.getenv("NM_ML_SKIP_TENSORFLOW_TESTS", False),
reason="Skipping tensorflow_v1 tests",
Expand Down