File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 13
13
"""Configuration for collecting system and framework metrics in SageMaker training jobs."""
14
14
from __future__ import absolute_import
15
15
16
+ import logging
16
17
from typing import Optional , Union
17
18
18
19
from sagemaker .debugger .framework_profile import FrameworkProfile
19
20
from sagemaker .workflow .entities import PipelineVariable
20
21
22
+ logger = logging .getLogger (__name__ )
23
+
21
24
22
25
class ProfilerConfig (object ):
23
26
"""Configuration for collecting system and framework metrics of SageMaker training jobs.
@@ -81,6 +84,11 @@ class and SageMaker Framework estimators.
81
84
self .framework_profile_params = framework_profile_params
82
85
self .disable_profiler = disable_profiler
83
86
87
+ if self .framework_profile_params is not None :
88
+ logger .warning (
89
+ "Framework profiling will be deprecated from tensorflow 2.12 and pytorch 2.0"
90
+ )
91
+
84
92
def _to_request_dict (self ):
85
93
"""Generate a request dictionary using the parameters provided when initializing the object.
86
94
Original file line number Diff line number Diff line change @@ -708,7 +708,6 @@ def test_create_pytorch_estimator_w_image_with_framework_profile(
708
708
)
709
709
710
710
711
- """
712
711
def test_create_tf_estimator_with_framework_profile (
713
712
sagemaker_session ,
714
713
tensorflow_inference_version ,
@@ -720,13 +719,16 @@ def test_create_tf_estimator_with_framework_profile(
720
719
tf = TensorFlow (
721
720
entry_point = SCRIPT_PATH ,
722
721
role = ROLE ,
723
- framework_version=tensorflow_inference_version ,
724
- py_version=tensorflow_inference_py_version ,
722
+ framework_version = "2.8" ,
723
+ py_version = "py39" ,
725
724
sagemaker_session = sagemaker_session ,
726
725
instance_count = INSTANCE_COUNT ,
727
726
instance_type = INSTANCE_TYPE ,
728
727
profiler_config = profiler_config ,
729
728
)
729
+
730
+
731
+ """
730
732
... ValueError: TF 1.5 supports only legacy mode.
731
733
Please supply the image URI directly with
732
734
'image_uri=520713654638.dkr.ecr.us-west-2.amazonaws.com/sagemaker-tensorflow:1.5-cpu-py2'
You can’t perform that action at this time.
0 commit comments