# Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'license' file accompanying this file. This file is # distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. """BETA module containing volatile or experimental code.""" from __future__ import absolute_import # flake8: noqa ignore=F401 imported but unused import sagemaker_containers from sagemaker_containers import _content_types as content_types from sagemaker_containers import _encoders as encoders from sagemaker_containers import _errors as errors from sagemaker_containers import _env as env from sagemaker_containers import _mpi as mpi from sagemaker_containers import _files as files from sagemaker_containers import _functions as functions from sagemaker_containers import _logging as logging from sagemaker_containers import _mapping as mapping from sagemaker_containers import _modules as modules from sagemaker_containers import entry_point from sagemaker_containers import _params as params from sagemaker_containers import _process as process from sagemaker_containers import _runner as runner from sagemaker_containers import _server as server from sagemaker_containers import _trainer as trainer from sagemaker_containers import _transformer as transformer from sagemaker_containers import _worker as worker def training_env(resource_config=None, input_data_config=None, hyperparameters=None): """Placeholder docstring""" resource_config = resource_config or env.read_resource_config() input_data_config = input_data_config or env.read_input_data_config() hyperparameters = hyperparameters or env.read_hyperparameters() return env.TrainingEnv( resource_config=resource_config, input_data_config=input_data_config, hyperparameters=hyperparameters, )