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

# 简介

逻辑流分配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)
```
