---
title: to_flow_msg
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/udfrefp_23_0059.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/udfrefp_23_0059.html
indexId: d440a4f36e8683449c34b9a4d939e2420704ae28dc2971f4aa7a955868df66b470
---
# to_flow_msg

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


#### 函数功能

将dataflow Tensor转换成FlowMsg。


#### 函数原型

```
to_flow_msg(self, tensor)
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| tensor | 输入 | 待转换的dataflow Tensor。 |


#### 返回值

正常返回FlowMsg的实例。失败返回None。


#### 异常处理

无


#### 约束说明

无
