File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
unit/sagemaker/training_compiler Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -224,11 +224,9 @@ def test_tensorflow(
224
224
"""
225
225
Test the TensorFlow estimator
226
226
"""
227
- if (
228
- version .parse ("2.9" )
229
- <= version .parse (tensorflow_training_latest_version )
230
- < version .parse ("2.13" )
231
- ):
227
+ if version .parse (tensorflow_training_latest_version ) >= version .parse ("2.12" ) or version .parse (
228
+ tensorflow_training_latest_version
229
+ ) < version .parse ("2.9" ):
232
230
pytest .skip ("Training Compiler only supports TF >= 2.9 and < 2.12" )
233
231
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
234
232
epochs = 10
Original file line number Diff line number Diff line change 57
57
58
58
@pytest .fixture (scope = "module" , autouse = True )
59
59
def skip_if_incompatible (tensorflow_training_version , request ):
60
- if version .parse ("2.9" ) <= version .parse (tensorflow_training_version ) < version .parse ("2.12" ):
60
+ if version .parse (tensorflow_training_version ) >= version .parse ("2.12" ) or version .parse (
61
+ tensorflow_training_version
62
+ ) < version .parse ("2.9" ):
61
63
pytest .skip ("Training Compiler only supports TF >= 2.9 and < 2.12" )
62
64
63
65
You can’t perform that action at this time.
0 commit comments