---
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/TensorFlowCommunity/latest/Convergence/tfscopedevg/atlastfscopedev_11_0012.html
sourcePath: /source/zh/TensorFlowCommunity/910/Convergence/tfscopedevg/atlastfscopedev_11_0012.html
indexId: 74f4dd3742560def46db3122aab31b5be515ffe05e4452f0e6fd63aed2b47ed987
---
# 创建代码目录

用户可以直接单击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
```
