File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -1808,6 +1808,8 @@ def __init__(
1808
1808
``disable_profiler`` parameter to ``True``.
1809
1809
disable_profiler (bool): Specifies whether Debugger monitoring and profiling
1810
1810
will be disabled (default: ``False``).
1811
+ environment (dict[str, str]) : A string to string map contains environment
1812
+ variables to set in the Docker container.
1811
1813
"""
1812
1814
self .image_uri = image_uri
1813
1815
self .hyperparam_dict = hyperparameters .copy () if hyperparameters else {}
Original file line number Diff line number Diff line change @@ -2697,24 +2697,7 @@ def test_add_environment_variables_to_train_args(sagemaker_session):
2697
2697
2698
2698
sagemaker_session .train .assert_called_once ()
2699
2699
args = sagemaker_session .train .call_args [1 ]
2700
- assert args ["environment" ]
2701
-
2702
- def test_no_environment_variables_in_train_args (sagemaker_session ):
2703
- e = Estimator (
2704
- IMAGE_URI ,
2705
- ROLE ,
2706
- INSTANCE_COUNT ,
2707
- INSTANCE_TYPE ,
2708
- output_path = OUTPUT_PATH ,
2709
- sagemaker_session = sagemaker_session ,
2710
- environment = None ,
2711
- )
2712
-
2713
- e .fit ()
2714
-
2715
- sagemaker_session .train .assert_called_once ()
2716
- args = sagemaker_session .train .call_args [1 ]
2717
- assert not args ["environment" ]
2700
+ assert args ["environment" ] == ENV_INPUT
2718
2701
2719
2702
def test_generic_to_fit_with_sagemaker_metrics_enabled (sagemaker_session ):
2720
2703
e = Estimator (
You can’t perform that action at this time.
0 commit comments