Skip to content

Commit 10201c5

Browse files
mariumofknikure
authored andcommitted
Deprecation
1 parent 37a3a59 commit 10201c5

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tests/unit/test_profiler_config.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,6 @@ def test_create_pytorch_estimator_with_framework_profile(
664664
):
665665
profiler_config = ProfilerConfig(framework_profile_params=default_framework_profile)
666666

667-
container_log_level = '"logging.INFO"'
668-
source_dir = "s3://mybucket/source"
669667
pytorch = PyTorch(
670668
entry_point=SCRIPT_PATH,
671669
framework_version=pytorch_inference_version,
@@ -677,6 +675,7 @@ def test_create_pytorch_estimator_with_framework_profile(
677675
base_job_name="job",
678676
profiler_config=profiler_config,
679677
)
678+
assert pytorch._framework_name == "pytorch"
680679

681680

682681
def test_create_pytorch_estimator_w_image_with_framework_profile(
@@ -706,6 +705,7 @@ def test_create_pytorch_estimator_w_image_with_framework_profile(
706705
image_uri=image_uri,
707706
profiler_config=profiler_config,
708707
)
708+
assert pytorch._framework_name == "pytorch"
709709

710710

711711
def test_create_tf_estimator_with_framework_profile(
@@ -724,14 +724,7 @@ def test_create_tf_estimator_with_framework_profile(
724724
instance_type=INSTANCE_TYPE,
725725
profiler_config=profiler_config,
726726
)
727-
728-
729-
"""
730-
... ValueError: TF 1.5 supports only legacy mode.
731-
Please supply the image URI directly with
732-
'image_uri=520713654638.dkr.ecr.us-west-2.amazonaws.com/sagemaker-tensorflow:1.5-cpu-py2'
733-
and set 'model_dir=False' etc etc
734-
"""
727+
assert tf._framework_name == "tensorflow"
735728

736729

737730
def test_create_tf_estimator_w_image_with_framework_profile(
@@ -749,8 +742,6 @@ def test_create_tf_estimator_w_image_with_framework_profile(
749742
image_scope="inference",
750743
)
751744

752-
assert image_uri is not None
753-
754745
profiler_config = ProfilerConfig(framework_profile_params=default_framework_profile)
755746

756747
tf = TensorFlow(
@@ -762,3 +753,4 @@ def test_create_tf_estimator_w_image_with_framework_profile(
762753
image_uri=image_uri,
763754
profiler_config=profiler_config,
764755
)
756+
assert tf._framework_name == "tensorflow"

0 commit comments

Comments
 (0)