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.
1 | APP_ERROR AscendStream::AddTensorRefPtr(const Tensor& inputTensor); |
Parameter |
Input/Output |
Description |
|---|---|---|
inputTensor |
Input |
Tensor class, tensor to be mounted to an AscendStream object. |
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |