Troubleshoot Neo Compilation Errors
This section contains information about how to understand and prevent common compilation errors, the error messages they generate, and guidance on how to resolve these errors.
Topics
How to Use This Page
Attempt to resolve your error by the going through these sections in the following order:
-
Check that the input of your compilation job satisfies the input requirements. See What input data shapes does SageMaker Neo expect?
-
Check common framework-specific errors.
-
Check if your error is an infrastructure error.
-
Check your compilation log.
Framework-Related Errors
Error | Solution |
---|---|
|
Check your h5 file is in the Amazon S3 URI you specified. Or Check that the h5 file is correctly formatted |
|
Check you are only providing one |
|
Check the Keras version you specified is supported. See, supported frameworks for cloud instances and edge devices. |
|
Check that your model input follows NCHW format. See What input data shapes does SageMaker Neo expect? |
Error | Solution |
---|---|
|
SageMaker Neo will select the first parameter file given for compilation. |
Error | Solution |
---|---|
|
Make sure you only provide one .pb or .pbtxt file. |
|
Make sure you only provide one .pb or .pbtxt file. |
|
Check the operator you chose is supported. See SageMaker Neo Supported Frameworks
and Operators |
Error | Solution |
---|---|
|
Do either of the following:
|
Infrastructure-Related Errors
Error | Solution |
---|---|
|
Check the Amazon S3 URI your provided. |
|
Create an Amazon S3 bucket that is in the same region as the service. |
|
Check that your model in Amazon S3 is compressed into a |
Check your compilation log
-
Navigate to Amazon CloudWatch at https://console.aws.amazon.com/cloudwatch/
. -
Select the region you created the compilation job from the Region dropdown list in the top right.
-
In the navigation pane of the Amazon CloudWatch, choose Logs. Select Log groups.
-
Search for the log group called
/aws/sagemaker/CompilationJobs
. Select the log group. -
Search for the logstream named after the compilation job name. Select the log stream.