File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -224,8 +224,12 @@ def test_tensorflow(
224
224
"""
225
225
Test the TensorFlow estimator
226
226
"""
227
- if version .parse (tensorflow_training_latest_version ) < version .parse ("2.9" ):
228
- pytest .skip ("Training Compiler only supports TF >= 2.9" )
227
+ if (
228
+ version .parse ("2.9" )
229
+ <= version .parse (tensorflow_training_latest_version )
230
+ < version .parse ("2.12" )
231
+ ):
232
+ pytest .skip ("Training Compiler only supports TF >= 2.9 and < 2.12" )
229
233
with timeout (minutes = TRAINING_DEFAULT_TIMEOUT_MINUTES ):
230
234
epochs = 10
231
235
batch = 256
Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ def _test_image_uris(
72
72
}
73
73
74
74
TYPES_AND_PROCESSORS = INSTANCE_TYPES_AND_PROCESSORS
75
- if framework == "pytorch" and Version (fw_version ) >= Version ("1.13" ):
75
+ if (framework == "pytorch" and Version (fw_version ) >= Version ("1.13" )) or (
76
+ framework == "tensorflow" and Version (fw_version ) >= Version ("2.12" )
77
+ ):
76
78
"""Handle P2 deprecation"""
77
79
TYPES_AND_PROCESSORS = RENEWED_PYTORCH_INSTANCE_TYPES_AND_PROCESSORS
78
80
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 (tensorflow_training_version ) < version .parse ("2.9 " ):
61
- pytest .skip ("Training Compiler only supports TF >= 2.9" )
60
+ if version .parse ("2.9" ) <= version . parse ( tensorflow_training_version ) < version .parse ("2.12 " ):
61
+ pytest .skip ("Training Compiler only supports TF >= 2.9 and < 2.12 " )
62
62
63
63
64
64
@pytest .fixture (scope = "module" )
You can’t perform that action at this time.
0 commit comments