|
14 | 14 | from __future__ import absolute_import
|
15 | 15 |
|
16 | 16 | import abc
|
17 |
| - |
18 | 17 | from enum import Enum
|
19 | 18 | from typing import Dict, List, Union
|
20 | 19 |
|
21 | 20 | import attr
|
22 | 21 |
|
23 | 22 | from sagemaker.estimator import EstimatorBase, _TrainingJob
|
24 |
| -from sagemaker.inputs import CreateModelInput, TrainingInput, TransformInput, FileSystemInput, CompilationInput |
| 23 | +from sagemaker.inputs import ( |
| 24 | + CompilationInput, |
| 25 | + CreateModelInput, |
| 26 | + FileSystemInput, |
| 27 | + TrainingInput, |
| 28 | + TransformInput, |
| 29 | +) |
25 | 30 | from sagemaker.model import Model
|
26 | 31 | from sagemaker.processing import (
|
27 | 32 | ProcessingInput,
|
|
31 | 36 | )
|
32 | 37 | from sagemaker.transformer import Transformer, _TransformJob
|
33 | 38 | from sagemaker.tuner import HyperparameterTuner, _TuningJob
|
34 |
| -from sagemaker.workflow.entities import ( |
35 |
| - DefaultEnumMeta, |
36 |
| - Entity, |
37 |
| - RequestType, |
38 |
| -) |
39 |
| -from sagemaker.workflow.properties import ( |
40 |
| - PropertyFile, |
41 |
| - Properties, |
42 |
| -) |
| 39 | +from sagemaker.workflow.entities import DefaultEnumMeta, Entity, RequestType |
43 | 40 | from sagemaker.workflow.functions import Join
|
| 41 | +from sagemaker.workflow.properties import Properties, PropertyFile |
44 | 42 | from sagemaker.workflow.retry import RetryPolicy
|
45 | 43 |
|
46 | 44 |
|
@@ -688,23 +686,24 @@ class CompilationStep(Step):
|
688 | 686 | """Compilation step for workflow."""
|
689 | 687 |
|
690 | 688 | def __init__(
|
691 |
| - self, |
692 |
| - name: str, |
693 |
| - estimator: EstimatorBase, |
694 |
| - model: Model, |
695 |
| - inputs: CompilationInput = None, |
696 |
| - job_arguments: List[str] = None, |
697 |
| - depends_on: Union[List[str], List[Step]] = None, |
698 |
| - retry_policies: List[RetryPolicy] = None, |
699 |
| - display_name: str = None, |
700 |
| - description: str = None, |
701 |
| - cache_config: CacheConfig = None |
| 689 | + self, |
| 690 | + name: str, |
| 691 | + estimator: EstimatorBase, |
| 692 | + model: Model, |
| 693 | + inputs: CompilationInput = None, |
| 694 | + job_arguments: List[str] = None, |
| 695 | + depends_on: Union[List[str], List[Step]] = None, |
| 696 | + retry_policies: List[RetryPolicy] = None, |
| 697 | + display_name: str = None, |
| 698 | + description: str = None, |
| 699 | + cache_config: CacheConfig = None, |
702 | 700 | ):
|
703 |
| - """Construct a CompilationStep, given an given an `EstimatorBase` instance and |
704 |
| - a `sagemaker.model.Model` instance. |
| 701 | + """Construct a CompilationStep. |
| 702 | +
|
| 703 | + Given an `EstimatorBase` and a `sagemaker.model.Model` instance construct a CompilationStep. |
705 | 704 |
|
706 |
| - In addition to the estimator and Model instances, the other arguments are those that are supplied to |
707 |
| - the `compile_model` method of the `sagemaker.model.Model.compile_model`. |
| 705 | + In addition to the estimator and Model instances, the other arguments are those that are |
| 706 | + supplied to the `compile_model` method of the `sagemaker.model.Model.compile_model`. |
708 | 707 |
|
709 | 708 | Args:
|
710 | 709 | name (str): The name of the compilation step.
|
|
0 commit comments