@@ -152,29 +152,33 @@ class CompilationInput(object):
152
152
example: {'data': [1,3,1024,1024]}, or {'var1': [1,1,28,28],
153
153
'var2': [1,1,28,28]}
154
154
output_path(str): Specifies where to store the compiled model
155
- framework (str): The framework that is used to train the original
155
+ framework (str, optional ): The framework that is used to train the original
156
156
model. Allowed values: 'mxnet', 'tensorflow', 'keras', 'pytorch',
157
- 'onnx', 'xgboost'
158
- framework_version (str): The version of the framework
159
- compile_max_run (int): Timeout in seconds for compilation (default:
157
+ 'onnx', 'xgboost' (default: None)
158
+ framework_version (str, optional ): The version of the framework (default: None)
159
+ compile_max_run (int, optional ): Timeout in seconds for compilation (default:
160
160
15 * 60). After this amount of time Amazon SageMaker Neo
161
161
terminates the compilation job regardless of its current status.
162
- tags (list[dict]): List of tags for labeling a compilation job. For
163
- more, see
162
+ tags (list[dict], optional ): List of tags for labeling a compilation job.
163
+ For more, see
164
164
https://docs.aws.amazon.com/sagemaker/latest/dg/API_Tag.html.
165
- target_platform_os (str): Target Platform OS, for example: 'LINUX'.
165
+ job_name (str, optional): The name of the compilation job (default: None)
166
+ target_platform_os (str, optional): Target Platform OS, for example: 'LINUX'.
167
+ (default: None)
166
168
For allowed strings see
167
169
https://docs.aws.amazon.com/sagemaker/latest/dg/API_OutputConfig.html.
168
170
It can be used instead of target_instance_family.
169
- target_platform_arch (str): Target Platform Architecture, for example: 'X86_64'.
171
+ target_platform_arch (str, optional): Target Platform Architecture, for example: 'X86_64'.
172
+ (default: None)
170
173
For allowed strings see
171
174
https://docs.aws.amazon.com/sagemaker/latest/dg/API_OutputConfig.html.
172
175
It can be used instead of target_instance_family.
173
176
target_platform_accelerator (str, optional): Target Platform Accelerator,
174
- for example: 'NVIDIA'. For allowed strings see
177
+ for example: 'NVIDIA'. (default: None)
178
+ For allowed strings see
175
179
https://docs.aws.amazon.com/sagemaker/latest/dg/API_OutputConfig.html.
176
180
It can be used instead of target_instance_family.
177
- compiler_options (dict, optional): Additional parameters for compiler.
181
+ compiler_options (dict, optional): Additional parameters for compiler. (default: None)
178
182
Compiler Options are TargetPlatform / target_instance_family specific. See
179
183
https://docs.aws.amazon.com/sagemaker/latest/dg/API_OutputConfig.html for details.
180
184
"""
@@ -186,10 +190,11 @@ class CompilationInput(object):
186
190
framework_version : str = attr .ib (default = None )
187
191
compile_max_run : int = attr .ib (default = 15 * 60 )
188
192
tags : list = attr .ib (factory = list )
193
+ job_name : str = attr .ib (default = None )
189
194
target_platform_os : str = attr .ib (default = None )
190
195
target_platform_arch : str = attr .ib (default = None )
191
196
target_platform_accelerator : str = attr .ib (default = None )
192
- compiler_options : dict = attr .ib (factory = dict )
197
+ compiler_options : dict = attr .ib (default = None )
193
198
194
199
195
200
@attr .s
0 commit comments