get_tensor - get_tensor - 3.0 English - UG1414

Vitis AI User Guide (UG1414)

Document_ID
UG1414
Release_Date
2023-02-24
Version
3.0 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();