TIMG2COL¶
指令示意图¶
简介¶
用于类卷积工作负载的图像到列变换。
数学语义¶
除非另有说明, semantics are defined over the valid region and target-dependent behavior is marked as implementation-defined.
汇编语法¶
PTO-AS 形式:参见 PTO-AS Specification.
AS Level 1 (SSA)¶
%dst = pto.timg2col %src : !pto.tile<...> -> !pto.tile<...>
AS Level 2 (DPS)¶
pto.timg2col ins(%src : !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)
AS Level 1(SSA)¶
%dst = pto.timg2col %src : !pto.tile<...> -> !pto.tile<...>
AS Level 2(DPS)¶
pto.timg2col ins(%src : !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)
C++ 内建接口¶
声明于 include/pto/common/pto_instr.hpp:
PTO_INST RecordEvent TIMG2COL(TileData &dst, ConvTileData &src, uint16_t posM = 0, uint16_t posK = 0,
WaitEvents&... events);
约束¶
- This instruction is target/implementation-specific. See
include/pto/npu/*/TImg2col.hppfor the supported tile types/layouts and config fields.
示例¶
See related examples in docs/isa/ and docs/coding/tutorials/.