data_phy - 2.0 English

Vitis AI User Guide (UG1414)

Document ID
UG1414
Release Date
2022-01-20
Version
2.0 English
Get the data physical address of the index and the left accessible data size.

Prototype

std::pair<uint64_t, size_t> data_phy(const std::vector<std::int32_t> idx);

Parameters

The following table lists the data_phy function arguments.
Table 1. data_phy Arguments
Type Name Description
const std::vector<std::int32_t> idx The index of the data to be accessed, its dimension same to the tensor shape

Returns

A pair of the data physical address of the index and the left accessible data size in byte unit.

Usage

vart::TensorBuffer* tb;
std::tie(phy_data, phy_size) = tb->data_phy({0, 0});