---
title: 性能验证
description: "调优完成后，请还原代码，并刷新算子编译缓存，即将ACL_OP_COMPILER_CACHE_MODE设置为force，使用方法示例如下。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/aoe/aoeep_16_045.html
sourcePath: /source/zh/canncommercial/900/devaids/aoe/aoeep_16_045.html
indexId: 609a3bed307e2e478bdb130f9ec9b1d6c2721dbfb2d352d80eef960d6cf9dbf259
---
# 性能验证

调优完成后，请还原代码，并刷新算子编译缓存，即将ACL_OP_COMPILER_CACHE_MODE设置为force，使用方法示例如下。

```
import torch 
import torch_npu 
option = {"ACL_OP_COMPILER_CACHE_MODE":"force"} 
torch_npu.npu.set_option(option)
```

使用调优后的自定义知识库前，请确保未开启二进制模式，使用方法如下。

```
torch_npu.npu.set_compile_mode(jit_compile=True)
```

使用调优后的自定义知识库（如何使用请参见如何使用调优后的自定义知识库）重新训练，验证性能是否提高。
