---
title: 创建代码目录
description: "用户可以直接单击Link(https://gitee.com/ascend/samples/releases)，下载配套版本的sample包，从“samples/cplusplus/level1_single_api/4_op_dev/1_custom_op”目录中获取样例。并对其中的样例进行修改，追加自己的自定义融合规则。工程目录结构如下："
url: https://www.hiascend.com/document/detail/zh/TensorFlowCommercial/latest/Convergence/tfscopedevg/atlastfscopedev_11_0012.html
sourcePath: /source/zh/TensorFlowCommercial/900/Convergence/tfscopedevg/atlastfscopedev_11_0012.html
indexId: 60bce161b008d159c2f460bd9ba7d74d24d66d429f3b999568f3598ab1cf99ca88
---
# 创建代码目录

用户可以直接单击Link(https://gitee.com/ascend/samples/releases)，下载配套版本的sample包，从“samples/cplusplus/level1_single_api/4_op_dev/1_custom_op”目录中获取样例。并对其中的样例进行修改，追加自己的自定义融合规则。工程目录结构如下：

```
├── framework                   // 算子插件实现文件目录
│   ├── CMakeLists.txt
│   ├── tf_plugin
│       └── decode_bbox_v2_scope_fussion_plugin.cc  // Scope融合算子适配插件实现文件，仅多对一场景需要
│       └── CMakeLists.txt
│   ├── tf_scope_fusion_pass
│       └── decode_bbox_v2_scope_fusion_pass.h                    // Scope融合规则头文件
│       └── decode_bbox_v2_scope_fusion_pass.cc                  // Scope融合规则实现文件
│       └── CMakeLists.txt
```
