Skip to content

Commit 9accb69

Browse files
committed
fix: logic error in trcomp test for TF estimator
1 parent 320d05b commit 9accb69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integ/test_training_compiler.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from __future__ import absolute_import
1414

1515
import os
16-
16+
from packaging import version
1717
import pytest
1818

1919
from sagemaker.huggingface import HuggingFace
@@ -125,6 +125,8 @@ def test_tensorflow(
125125
gpu_instance_type,
126126
tensorflow_training_latest_version,
127127
):
128+
if version.parse(tensorflow_training_latest_version) < version.parse("2.9"):
129+
pytest.skip("Training Compiler only supports TF >= 2.9")
128130
with timeout(minutes=TRAINING_DEFAULT_TIMEOUT_MINUTES):
129131
epochs = 10
130132
batch = 256

0 commit comments

Comments
 (0)