---
title: 简介
description: 获取自定义Pass上下文对象。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0574.html"
---

# 简介

获取自定义Pass上下文对象。

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

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


#### Public成员函数

```
CustomPassContext()
virtual
~
CustomPassContext() = default
void SetErrorMessage(const AscendString &error_message)
graphStatus GetOptionValue(const AscendString &option_key, AscendString &option_value) const
void SetPassName(const AscendString &pass_name)
AscendString GetPassName() const
```
