---
title: 简介
description: "用于注册和管理自定义Pass（处理阶段）的类。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0704.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0704.html
indexId: ce970e1be5b2cf9a871517c1f38ed3de6d858f051792bbc735948be96526f8a872
---
# 简介

用于注册和管理自定义Pass（处理阶段）的类。

#### 需要包含的头文件

```
#include <register/register_custom_pass.h>
```


#### Public成员函数

```
PassRegistrationData() = default
~
PassRegistrationData() = default
PassRegistrationData(std::string pass_name)
PassRegistrationData &CustomPassFn(const CustomPassFunc &custom_pass_fn)
std::string GetPassName() const
CustomPassFunc GetCustomPassFn() const
PassRegistrationData &Stage(const CustomPassStage stage)
CustomPassStage GetStage() const
PassRegistrationData &CustomAllocateStreamPassFn(const CustomAllocateStreamPassFunc &allocate_stream_pass_fn)
CustomAllocateStreamPassFunc GetCustomAllocateStreamPass() const
```
