8812053fe214cfb55583c469f2d8703bd7e3b5b1,src/sagemaker/model.py,FrameworkModel,prepare_container_def,#FrameworkModel#Any#,162

Before Change


        Returns:
            dict[str, str]: A container definition object usable with the CreateModel API.
        
        self._upload_code(self.key_prefix or self.name or name_from_image(self.image))
        deploy_env = dict(self.env)
        deploy_env.update(self._framework_env_vars())
        return sagemaker.container_def(self.image, self.model_data, deploy_env)

After Change


        Returns:
            dict[str, str]: A container definition object usable with the CreateModel API.
        
        deploy_key_prefix = model_code_key_prefix(self.key_prefix, self.name, self.image)
        self._upload_code(deploy_key_prefix)
        deploy_env = dict(self.env)
        deploy_env.update(self._framework_env_vars())
        return sagemaker.container_def(self.image, self.model_data, deploy_env)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: aws/sagemaker-python-sdk
Commit Name: 8812053fe214cfb55583c469f2d8703bd7e3b5b1
Time: 2018-06-21
Author: humanzz@hotmail.com
File Name: src/sagemaker/model.py
Class Name: FrameworkModel
Method Name: prepare_container_def


Project Name: aws/sagemaker-python-sdk
Commit Name: 8812053fe214cfb55583c469f2d8703bd7e3b5b1
Time: 2018-06-21
Author: humanzz@hotmail.com
File Name: src/sagemaker/tensorflow/model.py
Class Name: TensorFlowModel
Method Name: prepare_container_def


Project Name: aws/sagemaker-python-sdk
Commit Name: 8812053fe214cfb55583c469f2d8703bd7e3b5b1
Time: 2018-06-21
Author: humanzz@hotmail.com
File Name: src/sagemaker/chainer/model.py
Class Name: ChainerModel
Method Name: prepare_container_def


Project Name: aws/sagemaker-python-sdk
Commit Name: 8812053fe214cfb55583c469f2d8703bd7e3b5b1
Time: 2018-06-21
Author: humanzz@hotmail.com
File Name: src/sagemaker/mxnet/model.py
Class Name: MXNetModel
Method Name: prepare_container_def


Project Name: aws/sagemaker-python-sdk
Commit Name: 8812053fe214cfb55583c469f2d8703bd7e3b5b1
Time: 2018-06-21
Author: humanzz@hotmail.com
File Name: src/sagemaker/pytorch/model.py
Class Name: PyTorchModel
Method Name: prepare_container_def