ToFlowMsg

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

x

Function Description

Converts the input tensor to FlowMsg used to carry the tensor.

Prototype

1
virtual std::shared_ptr<FlowMsg> ToFlowMsg(std::shared_ptr<Tensor> tensor)

Command-Line Options

Parameter

Input/Output

Description

tensor

Input

Pointer to a tensor.

Returns

Pointer to the converted FlowMsg.

Troubleshooting

If the conversion fails, NULL is returned.

Constraints

None