ToFlowMsg
产品支持情况
产品
|
是否支持
|
Atlas A3 训练系列产品/Atlas A3 推理系列产品
|
√
|
Atlas A2 训练系列产品/Atlas A2 推理系列产品
|
√
|
函数功能
根据输入的Tensor转换成用于承载Tensor的FlowMsg。
函数原型
virtual std::shared_ptr<FlowMsg> ToFlowMsg(std::shared_ptr<Tensor> tensor)
参数说明
参数名
|
输入/输出
|
描述
|
tensor
|
输入
|
Tensor的指针。
|
返回值
转换的FlowMsg指针。
异常处理
转换失败则返回NULL。
约束说明
无。