

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Memecahkan Masalah Kesalahan Kompilasi Neo
<a name="neo-troubleshooting-compilation"></a>

Bagian ini berisi informasi tentang cara memahami dan mencegah kesalahan kompilasi umum, pesan kesalahan yang mereka hasilkan, dan panduan tentang cara mengatasi kesalahan ini. 

**Topics**
+ [Cara Menggunakan Halaman Ini](#neo-troubleshooting-compilation-how-to-use)
+ [Kesalahan Terkait Kerangka Kerja](#neo-troubleshooting-compilation-framework-related-errors)
+ [Kesalahan Terkait Infrastruktur](#neo-troubleshooting-compilation-infrastructure-errors)
+ [Periksa log kompilasi Anda](#neo-troubleshooting-compilation-logs)

## Cara Menggunakan Halaman Ini
<a name="neo-troubleshooting-compilation-how-to-use"></a>

Mencoba untuk menyelesaikan kesalahan Anda dengan melalui bagian-bagian ini dalam urutan berikut:

1. Periksa apakah input pekerjaan kompilasi Anda memenuhi persyaratan input. Lihat [Bentuk data input apa yang diharapkan SageMaker Neo?](neo-compilation-preparing-model.md#neo-job-compilation-expected-inputs)

1.  Periksa kesalahan umum [khusus kerangka kerja](https://docs.aws.amazon.com/sagemaker/latest/dg/neo-troubleshooting-compilation.html#neo-troubleshooting-compilation-framework-related-errors). 

1.  Periksa apakah kesalahan Anda adalah [kesalahan infrastruktur](https://docs.aws.amazon.com/sagemaker/latest/dg/neo-troubleshooting-compilation.html#neo-troubleshooting-compilation-infrastructure-errors). 

1. Periksa [log kompilasi](https://docs.aws.amazon.com/sagemaker/latest/dg/neo-troubleshooting-compilation.html#neo-troubleshooting-compilation-logs) Anda.

## Kesalahan Terkait Kerangka Kerja
<a name="neo-troubleshooting-compilation-framework-related-errors"></a>

### Keras
<a name="neo-troubleshooting-compilation-framework-related-errors-keras"></a>


| Kesalahan | Solusi | 
| --- | --- | 
|   `InputConfiguration: No h5 file provided in <model path>`   |   Periksa file h5 Anda ada di Amazon S3 URI yang Anda tentukan.  *Atau* Periksa apakah [file h5 diformat dengan benar](https://www.tensorflow.org/guide/keras/save_and_serialize#keras_h5_format).   | 
|   `InputConfiguration: Multiple h5 files provided, <model path>, when only one is allowed`   |  Periksa bahwa Anda hanya menyediakan satu `h5` file.  | 
|   `ClientError: InputConfiguration: Unable to load provided Keras model. Error: 'sample_weight_mode'`   |  Periksa versi Keras yang Anda tentukan didukung. Lihat, kerangka kerja yang didukung untuk [instance cloud dan perangkat](https://docs.aws.amazon.com/sagemaker/latest/dg/neo-supported-cloud.html) [edge](https://docs.aws.amazon.com/sagemaker/latest/dg/neo-supported-devices-edge.html).   | 
|   `ClientError: InputConfiguration: Input input has wrong shape in Input Shape dictionary. Input shapes should be provided in NCHW format. `   |   Periksa apakah input model Anda mengikuti format NCHW. Lihat [Bentuk data input apa yang diharapkan SageMaker Neo?](https://docs.aws.amazon.com/sagemaker/latest/dg/neo-job-compilation.html#neo-job-compilation-expected-inputs)   | 

### MXNet
<a name="neo-troubleshooting-compilation-framework-related-errors-mxnet"></a>


| Kesalahan | Solusi | 
| --- | --- | 
|   `ClientError: InputConfiguration: Only one parameter file is allowed for MXNet model. Please make sure the framework you select is correct.`   |   SageMaker Neo akan memilih file parameter pertama yang diberikan untuk kompilasi.   | 

### TensorFlow
<a name="neo-troubleshooting-compilation-framework-related-errors-tensorflow"></a>


| Kesalahan | Solusi | 
| --- | --- | 
|   `InputConfiguration: Exactly one .pb file is allowed for TensorFlow models.`   |  Pastikan Anda hanya menyediakan satu file.pb atau .pbtxt.  | 
|  `InputConfiguration: Exactly one .pb or .pbtxt file is allowed for TensorFlow models.`  |  Pastikan Anda hanya menyediakan satu file.pb atau .pbtxt.  | 
|   ` ClientError: InputConfiguration: TVM cannot convert <model zoo> model. Please make sure the framework you selected is correct. The following operators are not implemented: {<operator name>} `   |   Periksa operator yang Anda pilih didukung. Lihat [Kerangka Kerja dan Operator yang Didukung SageMaker Neo](https://aws.amazon.com/releasenotes/sagemaker-neo-supported-frameworks-and-operators/).   | 

### PyTorch
<a name="neo-troubleshooting-compilation-framework-related-errors-pytorch"></a>


| Kesalahan | Solusi | 
| --- | --- | 
|   `InputConfiguration: We are unable to extract DataInputConfig from the model due to input_config_derivation_error. Please override by providing a DataInputConfig during compilation job creation.`  |  Lakukan salah satu dari langkah berikut: [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/id_id/sagemaker/latest/dg/neo-troubleshooting-compilation.html)  | 

## Kesalahan Terkait Infrastruktur
<a name="neo-troubleshooting-compilation-infrastructure-errors"></a>


| Kesalahan | Solusi | 
| --- | --- | 
|   `ClientError: InputConfiguration: S3 object does not exist. Bucket: <bucket>, Key: <bucket key>`   |  Periksa URI Amazon S3 yang Anda berikan.  | 
|   ` ClientError: InputConfiguration: Bucket <bucket name> is in region <region name> which is different from AWS Sagemaker service region <service region> `   |   Buat bucket Amazon S3 yang berada di wilayah yang sama dengan layanan.   | 
|   ` ClientError: InputConfiguration: Unable to untar input model. Please confirm the model is a tar.gz file `   |   Periksa apakah model Anda di Amazon S3 dikompresi menjadi file. `tar.gz`   | 

## Periksa log kompilasi Anda
<a name="neo-troubleshooting-compilation-logs"></a>

1. Arahkan ke Amazon CloudWatch di [https://console.aws.amazon.com/cloudwatch/](https://console.aws.amazon.com/cloudwatch/).

1. Pilih wilayah tempat Anda membuat pekerjaan kompilasi dari daftar dropdown **Region** di kanan atas.

1. Di panel navigasi Amazon CloudWatch, pilih **Log**. Pilih **Grup log**.

1. Cari grup log yang disebut`/aws/sagemaker/CompilationJobs`. Pilih grup log .

1. Cari logstream yang dinamai setelah nama pekerjaan kompilasi. Pilih aliran log.