Updated on 2022-03-13 GMT+08:00

AIModelManager::CreateOutputTensor

Creates a list of output tensors.

If you use this API to create tensors, the memory start address returned by this API must be 512-byte aligned. You are advised to use the AITensorFactory::CreateTensor interface to create a tensor. For details, see AITensorFactory::CreateTensor.

Syntax

virtual AIStatus AIModelManager::CreateOutputTensor(const std::vector<std::shared_ptr<IAITensor>> &in_data, std::vector<std::shared_ptr<IAITensor>> &out_data) override;

Parameter Description

Parameter

Description

Value Range

in_data

List of input tensors

For details about the syntax of the IAITensor data type, see IAITensor.

-

out_data

List of output tensors

For details about the syntax of the IAITensor data type, see IAITensor.

-

Return Value

SUCCESS indicates that initialization succeeds, while FAILED indicates that initialization fails.