---
title: 简介
description: "逻辑流分配Pass上下文对象。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0573.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0573.html
indexId: 40f64e80d9294b043b691b851a3bad45713baff463f175db32286f38d46d8c1d72
---
# 简介

逻辑流分配Pass上下文对象。

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

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


#### Public成员函数

```
explicit StreamPassContext(int64_t current_max_stream_id)
~
StreamPassContext() override = default
int64_t AllocateNextStreamId()
int64_t GetCurrMaxStreamId() const
int64_t GetStreamId(const GNode &node) const
graphStatus SetStreamId(const GNode &node, int64_t stream_id)
```
