copy_tensor_buffer - 2.5 English

Vitis AI User Guide (UG1414)

Document ID
UG1414
Release Date
2022-06-15
Version
2.5 English
Copy TensorBuffer from one to another.

Prototype

static void copy_tensor_buffer(vart::TensorBuffer* tb_from, vart::TensorBuffer* tb_to);

Parameters

The following table lists the copy_tensor_buffer function arguments.
Table 1. copy_tensor_buffer Arguments
Type Name Description
vart::TensorBuffer* tb_from The source TensorBuffer
vart::TensorBuffer* tb_to The destination TensorBuffer

Returns

None.

Usage

vart::TensorBuffer* tb_from;
vart::TensorBuffer* tb_to;
vart::TensorBuffer::copy_tensor_buffer(tb_from.get(), tb_to.get());