pytorch/buildspec-1-5-1.yml [5:96]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  cuda_version: &CUDA_VERSION cu101
  os_version: &OS_VERSION ubuntu16.04

  repository_info:
    training_repository: &TRAINING_REPOSITORY
        image_type: &TRAINING_IMAGE_TYPE training
        root: !join [ *FRAMEWORK, "/", *TRAINING_IMAGE_TYPE ]
        repository_name: &REPOSITORY_NAME !join [pr, "-", *FRAMEWORK, "-", *TRAINING_IMAGE_TYPE]
        repository: &REPOSITORY !join [ *ACCOUNT_ID, .dkr.ecr., *REGION, .amazonaws.com/, *REPOSITORY_NAME ]
    inference_repository: &INFERENCE_REPOSITORY
        image_type: &INFERENCE_IMAGE_TYPE inference
        root: !join [ *FRAMEWORK, "/", *INFERENCE_IMAGE_TYPE ]
        repository_name: &REPOSITORY_NAME !join [pr, "-", *FRAMEWORK, "-", *INFERENCE_IMAGE_TYPE]
        repository: &REPOSITORY !join [ *ACCOUNT_ID, .dkr.ecr., *REGION, .amazonaws.com/, *REPOSITORY_NAME ]

  context:
    training_context: &TRAINING_CONTEXT
      changehostname:
        source: docker/build_artifacts/changehostname.c
        target: changehostname.c
      start_with_right_hostname:
        source: docker/build_artifacts/start_with_right_hostname.sh
        target: start_with_right_hostname.sh
      example_mnist_file:
        source: docker/build_artifacts/mnist.py
        target: mnist.py
    inference_context: &INFERENCE_CONTEXT
      mms-entrypoint:
        source: docker/build_artifacts/mms-entrypoint.py
        target: mms-entrypoint.py
      config:
        source: docker/build_artifacts/config.properties
        target: config.properties

  images:
    BuildCPUPTTrainPy3DockerImage:
      <<: *TRAINING_REPOSITORY
      build: &PYTORCH_CPU_TRAINING_PY3 false
      image_size_baseline: 4899
      device_type: &DEVICE_TYPE cpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *OS_VERSION ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *TRAINING_CONTEXT
    BuildGPUPTTrainPy3DockerImage:
      <<: *TRAINING_REPOSITORY
      build: &PYTORCH_GPU_TRAINING_PY3 false
      image_size_baseline: 9228
      device_type: &DEVICE_TYPE gpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /, *CUDA_VERSION, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *TRAINING_CONTEXT
    BuildCPUPTInferencePy3DockerImage:
      <<: *INFERENCE_REPOSITORY
      build: &PYTORCH_CPU_INFERENCE_PY3 false
      image_size_baseline: 4899
      device_type: &DEVICE_TYPE cpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *OS_VERSION ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *INFERENCE_CONTEXT
    BuildGPUPTInferencePy3DockerImage:
      <<: *INFERENCE_REPOSITORY
      build: &PYTORCH_GPU_INFERENCE_PY3 false
      image_size_baseline: 9228
      device_type: &DEVICE_TYPE gpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /, *CUDA_VERSION, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *INFERENCE_CONTEXT
    BuildPyTorchExampleGPUTrainPy3DockerImage:
      <<: *TRAINING_REPOSITORY
      build: &PYTORCH_GPU_TRAINING_PY3 false
      image_size_baseline: 8500
      base_image_name: BuildGPUPTTrainPy3DockerImage
      device_type: &DEVICE_TYPE gpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION,
                   "-example" ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /example, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *TRAINING_CONTEXT
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pytorch/buildspec-1-5.yml [5:96]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  cuda_version: &CUDA_VERSION cu101
  os_version: &OS_VERSION ubuntu16.04

  repository_info:
    training_repository: &TRAINING_REPOSITORY
        image_type: &TRAINING_IMAGE_TYPE training
        root: !join [ *FRAMEWORK, "/", *TRAINING_IMAGE_TYPE ]
        repository_name: &REPOSITORY_NAME !join [pr, "-", *FRAMEWORK, "-", *TRAINING_IMAGE_TYPE]
        repository: &REPOSITORY !join [ *ACCOUNT_ID, .dkr.ecr., *REGION, .amazonaws.com/, *REPOSITORY_NAME ]
    inference_repository: &INFERENCE_REPOSITORY
        image_type: &INFERENCE_IMAGE_TYPE inference
        root: !join [ *FRAMEWORK, "/", *INFERENCE_IMAGE_TYPE ]
        repository_name: &REPOSITORY_NAME !join [pr, "-", *FRAMEWORK, "-", *INFERENCE_IMAGE_TYPE]
        repository: &REPOSITORY !join [ *ACCOUNT_ID, .dkr.ecr., *REGION, .amazonaws.com/, *REPOSITORY_NAME ]

  context:
    training_context: &TRAINING_CONTEXT
      changehostname:
        source: docker/build_artifacts/changehostname.c
        target: changehostname.c
      start_with_right_hostname:
        source: docker/build_artifacts/start_with_right_hostname.sh
        target: start_with_right_hostname.sh
      example_mnist_file:
        source: docker/build_artifacts/mnist.py
        target: mnist.py
    inference_context: &INFERENCE_CONTEXT
      mms-entrypoint:
        source: docker/build_artifacts/mms-entrypoint.py
        target: mms-entrypoint.py
      config:
        source: docker/build_artifacts/config.properties
        target: config.properties

  images:
    BuildCPUPTTrainPy3DockerImage:
      <<: *TRAINING_REPOSITORY
      build: &PYTORCH_CPU_TRAINING_PY3 false
      image_size_baseline: 4899
      device_type: &DEVICE_TYPE cpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *OS_VERSION ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *TRAINING_CONTEXT
    BuildGPUPTTrainPy3DockerImage:
      <<: *TRAINING_REPOSITORY
      build: &PYTORCH_GPU_TRAINING_PY3 false
      image_size_baseline: 9228
      device_type: &DEVICE_TYPE gpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /, *CUDA_VERSION, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *TRAINING_CONTEXT
    BuildCPUPTInferencePy3DockerImage:
      <<: *INFERENCE_REPOSITORY
      build: &PYTORCH_CPU_INFERENCE_PY3 false
      image_size_baseline: 4899
      device_type: &DEVICE_TYPE cpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *OS_VERSION ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *INFERENCE_CONTEXT
    BuildGPUPTInferencePy3DockerImage:
      <<: *INFERENCE_REPOSITORY
      build: &PYTORCH_GPU_INFERENCE_PY3 false
      image_size_baseline: 9228
      device_type: &DEVICE_TYPE gpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /, *CUDA_VERSION, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *INFERENCE_CONTEXT
    BuildPyTorchExampleGPUTrainPy3DockerImage:
      <<: *TRAINING_REPOSITORY
      build: &PYTORCH_GPU_TRAINING_PY3 false
      image_size_baseline: 8500
      base_image_name: BuildGPUPTTrainPy3DockerImage
      device_type: &DEVICE_TYPE gpu
      python_version: &DOCKER_PYTHON_VERSION py3
      tag_python_version: &TAG_PYTHON_VERSION py36
      tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION,
                   "-example" ]
      docker_file: !join [ docker/, *VERSION, /, *DOCKER_PYTHON_VERSION, /example, /Dockerfile., *DEVICE_TYPE ]
      context:
        <<: *TRAINING_CONTEXT
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



