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(
224224 """
225225 Test the TensorFlow estimator
226226 """
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" ):
232230 pytest .skip ("Training Compiler only supports TF >= 2.9 and < 2.12" )
233231 with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
234232 epochs = 10
Original file line number Diff line number Diff line change 5757
5858@pytest .fixture (scope = "module" , autouse = True )
5959def 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" ):
6163 pytest .skip ("Training Compiler only supports TF >= 2.9 and < 2.12" )
6264
6365
You can’t perform that action at this time.
0 commit comments