get_tensor - 2.5 English

Vitis AI User Guide (UG1414)

Document ID
UG1414
Release Date
2022-06-15
Version
2.5 English
Get Tensor of TensorBuffer.

Prototype

const xir::Tensor* get_tensor()

Parameters

None.

Returns

A pointer to the Tensor.

Usage

vart::TensorBuffer* tb;
auto shape = tb->get_tensor()->get_shape();