Creating a Code Directory
You can append your own custom fusion patterns to the available sample. Click here to download the sample package that matches your CANN version in use. Find the sample in the samples/cplusplus/level1_single_api/4_op_dev/1_custom_op directory. The project directory is organized as follows:
├── framework // Directory of the operator plugin implementation files │ ├── CMakeLists.txt │ ├── tf_plugin │ └── decode_bbox_v2_scope_fussion_plugin.cc // Implementation file of the scope fused operator plugin, which is required only in the many-to-one scenario │ └── CMakeLists.txt │ ├── tf_scope_fusion_pass │ └── decode_bbox_v2_scope_fusion_pass.h // Header file of scope fusion patterns │ └── decode_bbox_v2_scope_fusion_pass.cc // Implementation file of scope fusion patterns │ └── CMakeLists.txt
Parent topic: Developing Fusion Patterns