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

获取自定义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
```
