ToFlowMsg

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Function Description

Converts the input tensor to FlowMsg that carries tensors.

Prototype

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

Parameters

Parameter

Input/Output

Description

tensor

Input

Pointer to a tensor.

Returns

Pointer to the converted FlowMsg.

Exception Handling

NULL is returned if the conversion fails.

Constraints

None