8bc3ada5028661b5f42cf624f7f88444d22ec7f0,studio/ec2cloud_worker.py,EC2WorkerManager,_get_image_id,#EC2WorkerManager#,98

Before Change


            self.logger.warn("User startup script argument is deprecated")

    def _get_image_id(self):
        return "ami-cd0f5cb6"  // vanilla ubuntu 16.04 image
        // return "ami-b5f576cf"  // studio.ml gpu image with python2 and python3

    def _get_block_device_mappings(self, resources_needed):

After Change



    def _get_image_id(self):
        price_path = os.path.join(os.path.dirname(__file__), "aws/aws_amis.yaml")
        with open(price_path) as f:
            ami_dict = yaml.loads(f.read())

        region = self.client._client_config.region_name
        image_type = "ubuntu16.04"
        return ami_dict[image_type][region]

    def _get_block_device_mappings(self, resources_needed):
        return [{
            "DeviceName": "/dev/sda1",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: studioml/studio
Commit Name: 8bc3ada5028661b5f42cf624f7f88444d22ec7f0
Time: 2017-11-17
Author: peter.zhokhov@sentient.ai
File Name: studio/ec2cloud_worker.py
Class Name: EC2WorkerManager
Method Name: _get_image_id


Project Name: tensorflow/datasets
Commit Name: a30c31849a1ce6791ad201f09507c2f2dfe6db27
Time: 2018-11-08
Author: pierrot@google.com
File Name: tensorflow_datasets/core/features/image_feature.py
Class Name: Image
Method Name: encode_sample


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0ef51ea4a3c9f9c8c7c0579f0a8d0d372acce01c
Time: 2015-01-13
Author: yuyantingzero@gmail.com
File Name: perfkitbenchmarker/benchmarks/fio_benchmark.py
Class Name:
Method Name: Run