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)