sync_for_read - 2.5 日本語

Vitis AI ユーザー ガイド (UG1414)

Document ID
UG1414
Release Date
2022-06-15
Version
2.5 日本語
読み出しの前に、読み出し用キャッシュを無効化します。get_location() が DEVICE_ONLY または HOST_VIRT を返す場合、動作なし (NOP) です。

プロトタイプ

void sync_for_read(uint64_t offset, size_t size) {};

パラメーター

次の表に、sync_for_read 関数の引数を示します。
表 1. sync_for_read の引数
タイプ 名称 説明
uint64_t offset 開始オフセット アドレス
size_t size データ サイズ

戻り値

なし。

使用法

for (auto& output : output_tensor_buffers) {
    output->sync_for_read(0, output->get_tensor()->get_data_size() /
                                output->get_tensor()->get_shape()[0]);
}