AddTensorRefPtr

Function Usage

Mount the input tensor to an AscendStream object to extend the lifecycle of the input tensor. When Synchronize or DestroyAscendStream is called, the AscendStream object releases the mounted tensor.

Prototype

1
APP_ERROR AscendStream::AddTensorRefPtr(const Tensor& inputTensor);

Parameters

Parameter

Input/Output

Description

inputTensor

Input

Tensor class, tensor to be mounted to an AscendStream object.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.