
SET_QUANT_VECTOR【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isaIntroductionSet the vector quantization parameter for subsequentTPUSHoperations by configuring the hardware FPC register from a Scaling-type tiles address. The tile address is converted to the quantization parameter address format and written to the hardware quantization configuration.C IntrinsicDeclared ininclude/pto/common/pto_instr.hpp:template typename FpTileData, typename... WaitEvents PTO_INST RecordEvent SET_QUANT_VECTOR(FpTileData fpTile, WaitEvents ...events);ConstraintsFpTileData::Locmust beTileType::Scaling. Only Scaling-type tiles are supported as input.This instruction must be called before theTPUSHinstruction that consumes this configuration.The tile address encoding into the hardware FPC register is implementation-defined.Examples#include pto/pto-inst.hpp using namespace pto; template typename T AICORE void example_set_quant_vector() { using ScalingTile TileTileType::Scaling, T, 1, 128, BLayout::RowMajor, 1, 128; ScalingTile fpTile; TASSIGN(fpTile, 0x0); SET_QUANT_VECTOR(fpTile); }ASM Form ExamplesThe current public assembly reference does not define a stable PTO-AS spelling forSET_QUANT_VECTOR. Use the C intrinsic form for quantization configuration.【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isa创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考