File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Third Party
1
2
import pytest
2
3
import torch
3
4
from numpy import percentile
4
5
from tests .utils import SagemakerSimulator , Timer , is_running_in_codebuild
5
6
from torch .utils .smdebug import get_smdebug_hook
6
7
8
+ # First Party
7
9
from smdebug .core .utils import FRAMEWORK , is_framework_version_supported
8
10
9
11
@@ -25,6 +27,7 @@ def test_did_you_forget_to_update_the_supported_framework_version():
25
27
f" if you are trying to release sagemaker-debugger for the next version of pytorch ({ torch .__version__ } )."
26
28
)
27
29
30
+
28
31
@pytest .mark .skipif (
29
32
is_running_in_codebuild () is False ,
30
33
reason = "Microbenchmarking thresholds have been determined only for ci" ,
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def test_did_you_forget_to_update_the_supported_framework_version():
147
147
148
148
This is just to make you aware of the problem.
149
149
"""
150
- if not is_framework_version_supported (FRAMEWORK .PYTORCH ):
150
+ if not is_framework_version_supported (FRAMEWORK .TENSORFLOW ):
151
151
raise Exception (
152
152
"You are running against an unsupported version of Tensorflow..."
153
153
" Please update `smdebug.tensorflow.utils.SUPPORTED_TF_VERSION_THRESHOLD`"
You can’t perform that action at this time.
0 commit comments