# 'ascendc' Dialect A special dialect to support Ascend C API The AscendC dialect provides a number of operations that represent Ascend C library API for Huawei NPU. * [Operations](#operations) * [`ascendc.abs_l0` (ascendc::AbsL0Op)](#ascendc-abs-l0-ascendc-absl0op) * [`ascendc.abs_l1` (ascendc::AbsL1Op)](#ascendc-abs-l1-ascendc-absl1op) * [`ascendc.abs_l2` (ascendc::AbsL2Op)](#ascendc-abs-l2-ascendc-absl2op) * [`ascendc.acos` (ascendc::AcosOp)](#ascendc-acos-ascendc-acosop) * [`ascendc.acosh` (ascendc::AcoshOp)](#ascendc-acosh-ascendc-acoshop) * [`ascendc.add_deq_relu_l0` (ascendc::AddDeqReluL0Op)](#ascendc-add-deq-relu-l0-ascendc-adddeqrelul0op) * [`ascendc.add_deq_relu_l1` (ascendc::AddDeqReluL1Op)](#ascendc-add-deq-relu-l1-ascendc-adddeqrelul1op) * [`ascendc.add_deq_relu_l2` (ascendc::AddDeqReluL2Op)](#ascendc-add-deq-relu-l2-ascendc-adddeqrelul2op) * [`ascendc.add_l0` (ascendc::AddL0Op)](#ascendc-add-l0-ascendc-addl0op) * [`ascendc.add_l1` (ascendc::AddL1Op)](#ascendc-add-l1-ascendc-addl1op) * [`ascendc.add_l2` (ascendc::AddL2Op)](#ascendc-add-l2-ascendc-addl2op) * [`ascendc.add_l3` (ascendc::AddL3Op)](#ascendc-add-l3-ascendc-addl3op) * [`ascendc.add_relu_cast_l0` (ascendc::AddReluCastL0Op)](#ascendc-add-relu-cast-l0-ascendc-addrelucastl0op) * [`ascendc.add_relu_cast_l1` (ascendc::AddReluCastL1Op)](#ascendc-add-relu-cast-l1-ascendc-addrelucastl1op) * [`ascendc.add_relu_cast_l2` (ascendc::AddReluCastL2Op)](#ascendc-add-relu-cast-l2-ascendc-addrelucastl2op) * [`ascendc.add_relu_l0` (ascendc::AddReluL0Op)](#ascendc-add-relu-l0-ascendc-addrelul0op) * [`ascendc.add_relu_l1` (ascendc::AddReluL1Op)](#ascendc-add-relu-l1-ascendc-addrelul1op) * [`ascendc.add_relu_l2` (ascendc::AddReluL2Op)](#ascendc-add-relu-l2-ascendc-addrelul2op) * [`ascendc.adds_l0` (ascendc::AddsL0Op)](#ascendc-adds-l0-ascendc-addsl0op) * [`ascendc.adds_l1` (ascendc::AddsL1Op)](#ascendc-adds-l1-ascendc-addsl1op) * [`ascendc.adds_l2` (ascendc::AddsL2Op)](#ascendc-adds-l2-ascendc-addsl2op) * [`ascendc.and_l0` (ascendc::AndL0Op)](#ascendc-and-l0-ascendc-andl0op) * [`ascendc.and_l1` (ascendc::AndL1Op)](#ascendc-and-l1-ascendc-andl1op) * [`ascendc.and_l2` (ascendc::AndL2Op)](#ascendc-and-l2-ascendc-andl2op) * [`ascendc.ascend_is_aic` (ascendc::AscendIsAICOp)](#ascendc-ascend-is-aic-ascendc-ascendisaicop) * [`ascendc.ascend_is_aiv` (ascendc::AscendIsAIVOp)](#ascendc-ascend-is-aiv-ascendc-ascendisaivop) * [`ascendc.asin` (ascendc::AsinOp)](#ascendc-asin-ascendc-asinop) * [`ascendc.asinh` (ascendc::AsinhOp)](#ascendc-asinh-ascendc-asinhop) * [`ascendc.atan` (ascendc::AtanOp)](#ascendc-atan-ascendc-atanop) * [`ascendc.atanh` (ascendc::AtanhOp)](#ascendc-atanh-ascendc-atanhop) * [`ascendc.axpy` (ascendc::AxpyOp)](#ascendc-axpy-ascendc-axpyop) * [`ascendc.axpy_l0` (ascendc::AxpyL0Op)](#ascendc-axpy-l0-ascendc-axpyl0op) * [`ascendc.axpy_l1` (ascendc::AxpyL1Op)](#ascendc-axpy-l1-ascendc-axpyl1op) * [`ascendc.axpy_l2` (ascendc::AxpyL2Op)](#ascendc-axpy-l2-ascendc-axpyl2op) * [`ascendc.bilinearInterpolation_l0` (ascendc::BilinearInterpolationL0Op)](#ascendc-bilinearinterpolation-l0-ascendc-bilinearinterpolationl0op) * [`ascendc.bilinearInterpolation_l1` (ascendc::BilinearInterpolationL1Op)](#ascendc-bilinearinterpolation-l1-ascendc-bilinearinterpolationl1op) * [`ascendc.block_reduce_max_l0` (ascendc::BlockReduceMaxL0Op)](#ascendc-block-reduce-max-l0-ascendc-blockreducemaxl0op) * [`ascendc.block_reduce_max_l1` (ascendc::BlockReduceMaxL1Op)](#ascendc-block-reduce-max-l1-ascendc-blockreducemaxl1op) * [`ascendc.block_reduce_min_l0` (ascendc::BlockReduceMinL0Op)](#ascendc-block-reduce-min-l0-ascendc-blockreduceminl0op) * [`ascendc.block_reduce_min_l1` (ascendc::BlockReduceMinL1Op)](#ascendc-block-reduce-min-l1-ascendc-blockreduceminl1op) * [`ascendc.block_reduce_sum_l0` (ascendc::BlockReduceSumL0Op)](#ascendc-block-reduce-sum-l0-ascendc-blockreducesuml0op) * [`ascendc.block_reduce_sum_l1` (ascendc::BlockReduceSumL1Op)](#ascendc-block-reduce-sum-l1-ascendc-blockreducesuml1op) * [`ascendc.brcb_l0` (ascendc::BrcbL0Op)](#ascendc-brcb-l0-ascendc-brcbl0op) * [`ascendc.broadcast` (ascendc::BroadcastOp)](#ascendc-broadcast-ascendc-broadcastop) * [`ascendc.cast_deq_l0` (ascendc::CastDeqL0Op)](#ascendc-cast-deq-l0-ascendc-castdeql0op) * [`ascendc.cast_deq_l1` (ascendc::CastDeqL1Op)](#ascendc-cast-deq-l1-ascendc-castdeql1op) * [`ascendc.cast_deq_l2` (ascendc::CastDeqL2Op)](#ascendc-cast-deq-l2-ascendc-castdeql2op) * [`ascendc.cast_l0` (ascendc::CastL0Op)](#ascendc-cast-l0-ascendc-castl0op) * [`ascendc.cast_l1` (ascendc::CastL1Op)](#ascendc-cast-l1-ascendc-castl1op) * [`ascendc.cast_l2` (ascendc::CastL2Op)](#ascendc-cast-l2-ascendc-castl2op) * [`ascendc.ceil` (ascendc::CeilOp)](#ascendc-ceil-ascendc-ceilop) * [`ascendc.check_local_memory_ia` (ascendc::CheckLocalMemoryIAOp)](#ascendc-check-local-memory-ia-ascendc-checklocalmemoryiaop) * [`ascendc.clamp_max` (ascendc::ClampMaxOp)](#ascendc-clamp-max-ascendc-clampmaxop) * [`ascendc.clamp_min` (ascendc::ClampMinOp)](#ascendc-clamp-min-ascendc-clampminop) * [`ascendc.compare_l0` (ascendc::CompareL0Op)](#ascendc-compare-l0-ascendc-comparel0op) * [`ascendc.compare_l1` (ascendc::CompareL1Op)](#ascendc-compare-l1-ascendc-comparel1op) * [`ascendc.compare_l2` (ascendc::CompareL2Op)](#ascendc-compare-l2-ascendc-comparel2op) * [`ascendc.compare_r_l0` (ascendc::CompareRL0Op)](#ascendc-compare-r-l0-ascendc-comparerl0op) * [`ascendc.compare_r_l1` (ascendc::CompareRL1Op)](#ascendc-compare-r-l1-ascendc-comparerl1op) * [`ascendc.compare_scalar_l0` (ascendc::CompareScalarL0Op)](#ascendc-compare-scalar-l0-ascendc-comparescalarl0op) * [`ascendc.compare_scalar_l1` (ascendc::CompareScalarL1Op)](#ascendc-compare-scalar-l1-ascendc-comparescalarl1op) * [`ascendc.compare_scalar_l2` (ascendc::CompareScalarL2Op)](#ascendc-compare-scalar-l2-ascendc-comparescalarl2op) * [`ascendc.concat` (ascendc::ConcatOp)](#ascendc-concat-ascendc-concatop) * [`ascendc.construct` (ascendc::ConstructOp)](#ascendc-construct-ascendc-constructop) * [`ascendc.copy_l0` (ascendc::CopyL0Op)](#ascendc-copy-l0-ascendc-copyl0op) * [`ascendc.copy_l1` (ascendc::CopyL1Op)](#ascendc-copy-l1-ascendc-copyl1op) * [`ascendc.cos` (ascendc::CosOp)](#ascendc-cos-ascendc-cosop) * [`ascendc.cosh` (ascendc::CoshOp)](#ascendc-cosh-ascendc-coshop) * [`ascendc.count_bits_cnt_same_as_sign_bit` (ascendc::CountBitsCntSameAsSignBitOp)](#ascendc-count-bits-cnt-same-as-sign-bit-ascendc-countbitscntsameassignbitop) * [`ascendc.cross_core_set_flag` (ascendc::CrossCoreSetFlagOp)](#ascendc-cross-core-set-flag-ascendc-crosscoresetflagop) * [`ascendc.cross_core_wait_flag` (ascendc::CrossCoreWaitFlagOp)](#ascendc-cross-core-wait-flag-ascendc-crosscorewaitflagop) * [`ascendc.cumsum` (ascendc::CumSumOp)](#ascendc-cumsum-ascendc-cumsumop) * [`ascendc.data_cache_clean_invalid_global` (ascendc::DataCacheCleanAndInvalidGlobalOp)](#ascendc-data-cache-clean-invalid-global-ascendc-datacachecleanandinvalidglobalop) * [`ascendc.data_cache_clean_invalid_global_nodccidst` (ascendc::DataCacheCleanAndInvalidGlobalNoDcciDstOp)](#ascendc-data-cache-clean-invalid-global-nodccidst-ascendc-datacachecleanandinvalidglobalnodccidstop) * [`ascendc.data_cache_preload` (ascendc::DataCachePreloadOp)](#ascendc-data-cache-preload-ascendc-datacachepreloadop) * [`ascendc.data_copy_co12dst` (ascendc::DataCopyCO12DstOp)](#ascendc-data-copy-co12dst-ascendc-datacopyco12dstop) * [`ascendc.data_copy_enhanced` (ascendc::DataCopyEnhancedOp)](#ascendc-data-copy-enhanced-ascendc-datacopyenhancedop) * [`ascendc.data_copy_l0` (ascendc::DataCopyL0Op)](#ascendc-data-copy-l0-ascendc-datacopyl0op) * [`ascendc.data_copy_l2` (ascendc::DataCopyL2Op)](#ascendc-data-copy-l2-ascendc-datacopyl2op) * [`ascendc.data_copy_nd2nz` (ascendc::DataCopyNd2NzOp)](#ascendc-data-copy-nd2nz-ascendc-datacopynd2nzop) * [`ascendc.data_copy_nz2nd` (ascendc::DataCopyNz2NdOp)](#ascendc-data-copy-nz2nd-ascendc-datacopynz2ndop) * [`ascendc.data_copy_pad_ext_params` (ascendc::DataCopyPadExtParamsOp)](#ascendc-data-copy-pad-ext-params-ascendc-datacopypadextparamsop) * [`ascendc.data_copy_pad_l0` (ascendc::DataCopyPadL0Op)](#ascendc-data-copy-pad-l0-ascendc-datacopypadl0op) * [`ascendc.data_copy_pad_l0_ext` (ascendc::DataCopyPadExtL0Op)](#ascendc-data-copy-pad-l0-ext-ascendc-datacopypadextl0op) * [`ascendc.data_copy_pad_l2` (ascendc::DataCopyPadL2Op)](#ascendc-data-copy-pad-l2-ascendc-datacopypadl2op) * [`ascendc.data_copy_pad_l2_ext` (ascendc::DataCopyPadExtL2Op)](#ascendc-data-copy-pad-l2-ext-ascendc-datacopypadextl2op) * [`ascendc.data_copy_pad_nd2nz` (ascendc::DataCopyPadNd2NzOp)](#ascendc-data-copy-pad-nd2nz-ascendc-datacopypadnd2nzop) * [`ascendc.data_copy_pad_nd2nz_ext` (ascendc::DataCopyPadExtNd2NzOp)](#ascendc-data-copy-pad-nd2nz-ext-ascendc-datacopypadextnd2nzop) * [`ascendc.data_copy_slice` (ascendc::DataCopySliceOp)](#ascendc-data-copy-slice-ascendc-datacopysliceop) * [`ascendc.data_sync_barrier` (ascendc::DataSyncBarrierOp)](#ascendc-data-sync-barrier-ascendc-datasyncbarrierop) * [`ascendc.digamma` (ascendc::DigammaOp)](#ascendc-digamma-ascendc-digammaop) * [`ascendc.div_l0` (ascendc::DivL0Op)](#ascendc-div-l0-ascendc-divl0op) * [`ascendc.div_l1` (ascendc::DivL1Op)](#ascendc-div-l1-ascendc-divl1op) * [`ascendc.div_l2` (ascendc::DivL2Op)](#ascendc-div-l2-ascendc-divl2op) * [`ascendc.div_l3` (ascendc::DivL3Op)](#ascendc-div-l3-ascendc-divl3op) * [`ascendc.divs_l0` (ascendc::DivsL0Op)](#ascendc-divs-l0-ascendc-divsl0op) * [`ascendc.divs_l1` (ascendc::DivsL1Op)](#ascendc-divs-l1-ascendc-divsl1op) * [`ascendc.divs_l2` (ascendc::DivsL2Op)](#ascendc-divs-l2-ascendc-divsl2op) * [`ascendc.dump_acc_chk_point` (ascendc::DumpAccChkPointOp)](#ascendc-dump-acc-chk-point-ascendc-dumpaccchkpointop) * [`ascendc.dump_tensor` (ascendc::DumpTensorOp)](#ascendc-dump-tensor-ascendc-dumptensorop) * [`ascendc.duplicate_l0` (ascendc::DuplicateL0Op)](#ascendc-duplicate-l0-ascendc-duplicatel0op) * [`ascendc.duplicate_l1` (ascendc::DuplicateL1Op)](#ascendc-duplicate-l1-ascendc-duplicatel1op) * [`ascendc.duplicate_l2` (ascendc::DuplicateL2Op)](#ascendc-duplicate-l2-ascendc-duplicatel2op) * [`ascendc.erf` (ascendc::ErfOp)](#ascendc-erf-ascendc-erfop) * [`ascendc.erfc` (ascendc::ErfcOp)](#ascendc-erfc-ascendc-erfcop) * [`ascendc.exp` (ascendc::ExpOp)](#ascendc-exp-ascendc-expop) * [`ascendc.exp_l0` (ascendc::ExpL0Op)](#ascendc-exp-l0-ascendc-expl0op) * [`ascendc.exp_l1` (ascendc::ExpL1Op)](#ascendc-exp-l1-ascendc-expl1op) * [`ascendc.exp_l2` (ascendc::ExpL2Op)](#ascendc-exp-l2-ascendc-expl2op) * [`ascendc.extract` (ascendc::ExtractOp)](#ascendc-extract-ascendc-extractop) * [`ascendc.ffts_cross_core_sync` (ascendc::FftsCrossCoreSyncOp)](#ascendc-ffts-cross-core-sync-ascendc-fftscrosscoresyncop) * [`ascendc.fixpipe` (ascendc::FixpipeOp)](#ascendc-fixpipe-ascendc-fixpipeop) * [`ascendc.fixpipe_with_workspace` (ascendc::FixpipeWithWorkspaceOp)](#ascendc-fixpipe-with-workspace-ascendc-fixpipewithworkspaceop) * [`ascendc.floor` (ascendc::FloorOp)](#ascendc-floor-ascendc-floorop) * [`ascendc.frac` (ascendc::FracOp)](#ascendc-frac-ascendc-fracop) * [`ascendc.fused_abs_sub_l2` (ascendc::FusedAbsSubL2Op)](#ascendc-fused-abs-sub-l2-ascendc-fusedabssubl2op) * [`ascendc.fused_exp_sub_l2` (ascendc::FusedExpSubL2Op)](#ascendc-fused-exp-sub-l2-ascendc-fusedexpsubl2op) * [`ascendc.fused_mul_add_l0` (ascendc::FusedMulAddL0Op)](#ascendc-fused-mul-add-l0-ascendc-fusedmuladdl0op) * [`ascendc.fused_mul_add_l1` (ascendc::FusedMulAddL1Op)](#ascendc-fused-mul-add-l1-ascendc-fusedmuladdl1op) * [`ascendc.fused_mul_add_l2` (ascendc::FusedMulAddL2Op)](#ascendc-fused-mul-add-l2-ascendc-fusedmuladdl2op) * [`ascendc.fused_mul_add_relu_l0` (ascendc::FusedMulAddReluL0Op)](#ascendc-fused-mul-add-relu-l0-ascendc-fusedmuladdrelul0op) * [`ascendc.fused_mul_add_relu_l1` (ascendc::FusedMulAddReluL1Op)](#ascendc-fused-mul-add-relu-l1-ascendc-fusedmuladdrelul1op) * [`ascendc.fused_mul_add_relu_l2` (ascendc::FusedMulAddReluL2Op)](#ascendc-fused-mul-add-relu-l2-ascendc-fusedmuladdrelul2op) * [`ascendc.gather_l0` (ascendc::GatherL0Op)](#ascendc-gather-l0-ascendc-gatherl0op) * [`ascendc.gather_l1` (ascendc::GatherL1Op)](#ascendc-gather-l1-ascendc-gatherl1op) * [`ascendc.gather_l2` (ascendc::GatherL2Op)](#ascendc-gather-l2-ascendc-gatherl2op) * [`ascendc.gather_mask` (ascendc::GatherMaskOp)](#ascendc-gather-mask-ascendc-gathermaskop) * [`ascendc.gatherb_l0` (ascendc::GatherbL0Op)](#ascendc-gatherb-l0-ascendc-gatherbl0op) * [`ascendc.get_arch_version` (ascendc::GetArchVersionOp)](#ascendc-get-arch-version-ascendc-getarchversionop) * [`ascendc.get_block_idx` (ascendc::GetBlockIdxOp)](#ascendc-get-block-idx-ascendc-getblockidxop) * [`ascendc.get_block_num` (ascendc::GetBlockNumOp)](#ascendc-get-block-num-ascendc-getblocknumop) * [`ascendc.get_buf` (ascendc::GetBufOp)](#ascendc-get-buf-ascendc-getbufop) * [`ascendc.get_cmp_mask` (ascendc::GetCmpMaskOp)](#ascendc-get-cmp-mask-ascendc-getcmpmaskop) * [`ascendc.get_data_block_size_in_bytes` (ascendc::GetDataBlockSizeInBytesOp)](#ascendc-get-data-block-size-in-bytes-ascendc-getdatablocksizeinbytesop) * [`ascendc.get_gather_mask_remain_count` (ascendc::GetGatherMaskRemainCountOp)](#ascendc-get-gather-mask-remain-count-ascendc-getgathermaskremaincountop) * [`ascendc.get_hccl_context` (ascendc::GetHcclContextOp)](#ascendc-get-hccl-context-ascendc-gethcclcontextop) * [`ascendc.get_icache_preload_status` (ascendc::GetICachePreloadStatusOp)](#ascendc-get-icache-preload-status-ascendc-geticachepreloadstatusop) * [`ascendc.get_matmul_api_tiling` (ascendc::MatmulGetMatmulApiTilingOp)](#ascendc-get-matmul-api-tiling-ascendc-matmulgetmatmulapitilingop) * [`ascendc.get_mrg_sort_result` (ascendc::GetMrgSortResultOp)](#ascendc-get-mrg-sort-result-ascendc-getmrgsortresultop) * [`ascendc.get_program_counter` (ascendc::GetProgramCounterOp)](#ascendc-get-program-counter-ascendc-getprogramcounterop) * [`ascendc.get_shape_size` (ascendc::GetShapeSizeOp)](#ascendc-get-shape-size-ascendc-getshapesizeop) * [`ascendc.get_sort_len` (ascendc::GetSortLenOp)](#ascendc-get-sort-len-ascendc-getsortlenop) * [`ascendc.get_sort_offset` (ascendc::GetSortOffsetOp)](#ascendc-get-sort-offset-ascendc-getsortoffsetop) * [`ascendc.get_store_atomic_config` (ascendc::GetStoreAtomicConfigOp)](#ascendc-get-store-atomic-config-ascendc-getstoreatomicconfigop) * [`ascendc.get_sub_block_idx` (ascendc::GetSubBlockIdxOp)](#ascendc-get-sub-block-idx-ascendc-getsubblockidxop) * [`ascendc.get_sub_block_num` (ascendc::GetSubBlockNumOp)](#ascendc-get-sub-block-num-ascendc-getsubblocknumop) * [`ascendc.get_sys_workspace_ptr` (ascendc::GetSysWorkspacePtrOp)](#ascendc-get-sys-workspace-ptr-ascendc-getsysworkspaceptrop) * [`ascendc.get_system_cycle` (ascendc::GetSystemCycleOp)](#ascendc-get-system-cycle-ascendc-getsystemcycleop) * [`ascendc.get_task_ratio` (ascendc::GetTaskRatioOp)](#ascendc-get-task-ratio-ascendc-gettaskratioop) * [`ascendc.global_tensor` (ascendc::GlobalTensorOp)](#ascendc-global-tensor-ascendc-globaltensorop) * [`ascendc.global_tensor.bracket` (ascendc::GlobalTensorBracketOp)](#ascendc-global-tensor-bracket-ascendc-globaltensorbracketop) * [`ascendc.global_tensor.get_phy_addr` (ascendc::GlobalTensorGetPhyAddrOp)](#ascendc-global-tensor-get-phy-addr-ascendc-globaltensorgetphyaddrop) * [`ascendc.global_tensor.get_shape_info` (ascendc::GlobalTensorGetShapeInfoOp)](#ascendc-global-tensor-get-shape-info-ascendc-globaltensorgetshapeinfoop) * [`ascendc.global_tensor.get_size` (ascendc::GlobalTensorGetSizeOp)](#ascendc-global-tensor-get-size-ascendc-globaltensorgetsizeop) * [`ascendc.global_tensor.get_value` (ascendc::GlobalTensorGetValueOp)](#ascendc-global-tensor-get-value-ascendc-globaltensorgetvalueop) * [`ascendc.global_tensor.set_global_buffer` (ascendc::GlobalTensorSetGlobalBufferOp)](#ascendc-global-tensor-set-global-buffer-ascendc-globaltensorsetglobalbufferop) * [`ascendc.global_tensor.set_l2_cache_hint` (ascendc::GlobalTensorSetL2CacheHintOp)](#ascendc-global-tensor-set-l2-cache-hint-ascendc-globaltensorsetl2cachehintop) * [`ascendc.global_tensor.set_shape_info` (ascendc::GlobalTensorSetShapeInfoOp)](#ascendc-global-tensor-set-shape-info-ascendc-globaltensorsetshapeinfoop) * [`ascendc.global_tensor.set_shape_info_v2` (ascendc::GlobalTensorSetShapeInfoV2Op)](#ascendc-global-tensor-set-shape-info-v2-ascendc-globaltensorsetshapeinfov2op) * [`ascendc.global_tensor.set_value` (ascendc::GlobalTensorSetValueOp)](#ascendc-global-tensor-set-value-ascendc-globaltensorsetvalueop) * [`ascendc.global_tensor.subindex` (ascendc::GlobalTensorSubIndexOp)](#ascendc-global-tensor-subindex-ascendc-globaltensorsubindexop) * [`ascendc.ib_set` (ascendc::IBSetOp)](#ascendc-ib-set-ascendc-ibsetop) * [`ascendc.ib_wait` (ascendc::IBWaitOp)](#ascendc-ib-wait-ascendc-ibwaitop) * [`ascendc.icache_preload` (ascendc::ICachePreLoadOp)](#ascendc-icache-preload-ascendc-icachepreloadop) * [`ascendc.init_const_value` (ascendc::InitConstValueOp)](#ascendc-init-const-value-ascendc-initconstvalueop) * [`ascendc.init_soc_state` (ascendc::InitSocStateOp)](#ascendc-init-soc-state-ascendc-initsocstateop) * [`ascendc.kfc_server.init` (ascendc::KfcInitOp)](#ascendc-kfc-server-init-ascendc-kfcinitop) * [`ascendc.kfc_server.init_obj` (ascendc::KfcInitObjOp)](#ascendc-kfc-server-init-obj-ascendc-kfcinitobjop) * [`ascendc.kfc_server.is_run` (ascendc::KfcIsRunOp)](#ascendc-kfc-server-is-run-ascendc-kfcisrunop) * [`ascendc.kfc_server.quit` (ascendc::KfcQuitOp)](#ascendc-kfc-server-quit-ascendc-kfcquitop) * [`ascendc.kfc_server.run` (ascendc::KfcRunOp)](#ascendc-kfc-server-run-ascendc-kfcrunop) * [`ascendc.leaky_relu_l0` (ascendc::LeakyReluL0Op)](#ascendc-leaky-relu-l0-ascendc-leakyrelul0op) * [`ascendc.leaky_relu_l1` (ascendc::LeakyReluL1Op)](#ascendc-leaky-relu-l1-ascendc-leakyrelul1op) * [`ascendc.leaky_relu_l2` (ascendc::LeakyReluL2Op)](#ascendc-leaky-relu-l2-ascendc-leakyrelul2op) * [`ascendc.lgamma` (ascendc::LgammaOp)](#ascendc-lgamma-ascendc-lgammaop) * [`ascendc.list_tensor_desc` (ascendc::ListTensorDescOp)](#ascendc-list-tensor-desc-ascendc-listtensordescop) * [`ascendc.list_tensor_desc_get_data_ptr` (ascendc::ListTensorDescGetDataPtrOp)](#ascendc-list-tensor-desc-get-data-ptr-ascendc-listtensordescgetdataptrop) * [`ascendc.list_tensor_desc_get_desc` (ascendc::ListTensorDescGetDescOp)](#ascendc-list-tensor-desc-get-desc-ascendc-listtensordescgetdescop) * [`ascendc.list_tensor_desc_get_size` (ascendc::ListTensorDescGetSizeOp)](#ascendc-list-tensor-desc-get-size-ascendc-listtensordescgetsizeop) * [`ascendc.list_tensor_desc_init` (ascendc::ListTensorDescInitOp)](#ascendc-list-tensor-desc-init-ascendc-listtensordescinitop) * [`ascendc.list_tensor_desc_v2` (ascendc::ListTensorDescV2Op)](#ascendc-list-tensor-desc-v2-ascendc-listtensordescv2op) * [`ascendc.ln_l0` (ascendc::LnL0Op)](#ascendc-ln-l0-ascendc-lnl0op) * [`ascendc.ln_l1` (ascendc::LnL1Op)](#ascendc-ln-l1-ascendc-lnl1op) * [`ascendc.ln_l2` (ascendc::LnL2Op)](#ascendc-ln-l2-ascendc-lnl2op) * [`ascendc.load_data` (ascendc::LoadDataOp)](#ascendc-load-data-ascendc-loaddataop) * [`ascendc.load_data_3d_l0_v1` (ascendc::LoadData3DL0V1Op)](#ascendc-load-data-3d-l0-v1-ascendc-loaddata3dl0v1op) * [`ascendc.load_data_3d_l0_v2` (ascendc::LoadData3DL0V2Op)](#ascendc-load-data-3d-l0-v2-ascendc-loaddata3dl0v2op) * [`ascendc.load_data_3d_l0_v2pro` (ascendc::LoadData3DL0V2ProOp)](#ascendc-load-data-3d-l0-v2pro-ascendc-loaddata3dl0v2proop) * [`ascendc.load_data_g2l` (ascendc::LoadDataG2LOp)](#ascendc-load-data-g2l-ascendc-loaddatag2lop) * [`ascendc.load_data_g2l_v2` (ascendc::LoadDataG2LV2Op)](#ascendc-load-data-g2l-v2-ascendc-loaddatag2lv2op) * [`ascendc.load_data_l0` (ascendc::LoadDataL0Op)](#ascendc-load-data-l0-ascendc-loaddatal0op) * [`ascendc.load_data_l0_v2` (ascendc::LoadDataL0V2Op)](#ascendc-load-data-l0-v2-ascendc-loaddatal0v2op) * [`ascendc.load_data_with_sparse` (ascendc::LoadDataWithSparseOp)](#ascendc-load-data-with-sparse-ascendc-loaddatawithsparseop) * [`ascendc.load_data_with_transpose` (ascendc::LoadDataWithTransposeOp)](#ascendc-load-data-with-transpose-ascendc-loaddatawithtransposeop) * [`ascendc.load_data_with_transpose_v2` (ascendc::LoadDataWithTransposeV2Op)](#ascendc-load-data-with-transpose-v2-ascendc-loaddatawithtransposev2op) * [`ascendc.load_image_to_local` (ascendc::LoadImageToLocalOp)](#ascendc-load-image-to-local-ascendc-loadimagetolocalop) * [`ascendc.local_mem_allocator` (ascendc::LocalMemAllocatorOp)](#ascendc-local-mem-allocator-ascendc-localmemallocatorop) * [`ascendc.local_mem_allocator.alloc` (ascendc::LocalMemAllocatorAllocOp)](#ascendc-local-mem-allocator-alloc-ascendc-localmemallocatorallocop) * [`ascendc.local_mem_allocator.alloc_dynamic` (ascendc::LocalMemAllocatorAllocDynamicOp)](#ascendc-local-mem-allocator-alloc-dynamic-ascendc-localmemallocatorallocdynamicop) * [`ascendc.local_mem_allocator.get_cur_addr` (ascendc::LocalMemAllocatorGetCurAddrOp)](#ascendc-local-mem-allocator-get-cur-addr-ascendc-localmemallocatorgetcuraddrop) * [`ascendc.local_tensor` (ascendc::LocalTensorOp)](#ascendc-local-tensor-ascendc-localtensorop) * [`ascendc.local_tensor.bracket` (ascendc::LocalTensorBracketOp)](#ascendc-local-tensor-bracket-ascendc-localtensorbracketop) * [`ascendc.local_tensor.get_length` (ascendc::LocalTensorGetLengthOp)](#ascendc-local-tensor-get-length-ascendc-localtensorgetlengthop) * [`ascendc.local_tensor.get_phy_addr` (ascendc::LocalTensorGetPhyAddrOp)](#ascendc-local-tensor-get-phy-addr-ascendc-localtensorgetphyaddrop) * [`ascendc.local_tensor.get_position` (ascendc::LocalTensorGetPositionOp)](#ascendc-local-tensor-get-position-ascendc-localtensorgetpositionop) * [`ascendc.local_tensor.get_shape_info` (ascendc::LocalTensorGetShapeInfoOp)](#ascendc-local-tensor-get-shape-info-ascendc-localtensorgetshapeinfoop) * [`ascendc.local_tensor.get_size` (ascendc::LocalTensorGetSizeOp)](#ascendc-local-tensor-get-size-ascendc-localtensorgetsizeop) * [`ascendc.local_tensor.get_user_tag` (ascendc::LocalTensorGetUserTagOp)](#ascendc-local-tensor-get-user-tag-ascendc-localtensorgetusertagop) * [`ascendc.local_tensor.get_value` (ascendc::LocalTensorGetValueOp)](#ascendc-local-tensor-get-value-ascendc-localtensorgetvalueop) * [`ascendc.local_tensor.print` (ascendc::LocalTensorPrintOp)](#ascendc-local-tensor-print-ascendc-localtensorprintop) * [`ascendc.local_tensor.set_addr_with_offset` (ascendc::LocalTensorSetAddrWithOffsetOp)](#ascendc-local-tensor-set-addr-with-offset-ascendc-localtensorsetaddrwithoffsetop) * [`ascendc.local_tensor.set_buffer_len` (ascendc::LocalTensorSetBufferLenOp)](#ascendc-local-tensor-set-buffer-len-ascendc-localtensorsetbufferlenop) * [`ascendc.local_tensor.set_shape_info` (ascendc::LocalTensorSetShapeInfoOp)](#ascendc-local-tensor-set-shape-info-ascendc-localtensorsetshapeinfoop) * [`ascendc.local_tensor.set_size` (ascendc::LocalTensorSetSizeOp)](#ascendc-local-tensor-set-size-ascendc-localtensorsetsizeop) * [`ascendc.local_tensor.set_user_tag` (ascendc::LocalTensorSetUserTagOp)](#ascendc-local-tensor-set-user-tag-ascendc-localtensorsetusertagop) * [`ascendc.local_tensor.set_value` (ascendc::LocalTensorSetValueOp)](#ascendc-local-tensor-set-value-ascendc-localtensorsetvalueop) * [`ascendc.local_tensor.subindex` (ascendc::LocalTensorSubIndexOp)](#ascendc-local-tensor-subindex-ascendc-localtensorsubindexop) * [`ascendc.local_tensor.to_file` (ascendc::LocalTensorToFileOp)](#ascendc-local-tensor-to-file-ascendc-localtensortofileop) * [`ascendc.local_tensor_auto` (ascendc::LocalTensorAutoOp)](#ascendc-local-tensor-auto-ascendc-localtensorautoop) * [`ascendc.local_tensor_v2` (ascendc::LocalTensorV2Op)](#ascendc-local-tensor-v2-ascendc-localtensorv2op) * [`ascendc.local_tensor_v3` (ascendc::LocalTensorV3Op)](#ascendc-local-tensor-v3-ascendc-localtensorv3op) * [`ascendc.log` (ascendc::LogOp)](#ascendc-log-ascendc-logop) * [`ascendc.log2` (ascendc::Log2Op)](#ascendc-log2-ascendc-log2op) * [`ascendc.matmul.async_get_tensor_c` (ascendc::MatmulAsyncGetTensorCOp)](#ascendc-matmul-async-get-tensor-c-ascendc-matmulasyncgettensorcop) * [`ascendc.matmul.disable_bias` (ascendc::MatmulDisableBiasOp)](#ascendc-matmul-disable-bias-ascendc-matmuldisablebiasop) * [`ascendc.matmul.end` (ascendc::MatmulEndOp)](#ascendc-matmul-end-ascendc-matmulendop) * [`ascendc.matmul.get_batch_tensor_c` (ascendc::MatmulGetBatchTensorCOp)](#ascendc-matmul-get-batch-tensor-c-ascendc-matmulgetbatchtensorcop) * [`ascendc.matmul.get_batch_tensor_c_local_mem` (ascendc::MatmulGetBatchTensorCLocalMemOp)](#ascendc-matmul-get-batch-tensor-c-local-mem-ascendc-matmulgetbatchtensorclocalmemop) * [`ascendc.matmul.get_offset_c` (ascendc::MatmulGetOffsetCOp)](#ascendc-matmul-get-offset-c-ascendc-matmulgetoffsetcop) * [`ascendc.matmul.get_tensor_c` (ascendc::MatmulGetTensorCOp)](#ascendc-matmul-get-tensor-c-ascendc-matmulgettensorcop) * [`ascendc.matmul.get_tensor_c_return` (ascendc::MatmulGetTensorCReturnOp)](#ascendc-matmul-get-tensor-c-return-ascendc-matmulgettensorcreturnop) * [`ascendc.matmul.init` (ascendc::MatmulInitOp)](#ascendc-matmul-init-ascendc-matmulinitop) * [`ascendc.matmul.iterate` (ascendc::MatmulIterateOp)](#ascendc-matmul-iterate-ascendc-matmuliterateop) * [`ascendc.matmul.iterate_all` (ascendc::MatmulIterateAllOp)](#ascendc-matmul-iterate-all-ascendc-matmuliterateallop) * [`ascendc.matmul.iterate_batch` (ascendc::MatmulIterateBatchOp)](#ascendc-matmul-iterate-batch-ascendc-matmuliteratebatchop) * [`ascendc.matmul.iterate_batch_cube_only` (ascendc::MatmulIterateBatchCubeOnlyOp)](#ascendc-matmul-iterate-batch-cube-only-ascendc-matmuliteratebatchcubeonlyop) * [`ascendc.matmul.iterate_n_batch` (ascendc::MatmulIterateNBatchOp)](#ascendc-matmul-iterate-n-batch-ascendc-matmuliteratenbatchop) * [`ascendc.matmul.set_batch_num` (ascendc::MatmulSetBatchNumOp)](#ascendc-matmul-set-batch-num-ascendc-matmulsetbatchnumop) * [`ascendc.matmul.set_bias` (ascendc::MatmulSetBiasOp)](#ascendc-matmul-set-bias-ascendc-matmulsetbiasop) * [`ascendc.matmul.set_hf32` (ascendc::MatmulSetHF32Op)](#ascendc-matmul-set-hf32-ascendc-matmulsethf32op) * [`ascendc.matmul.set_org_shape` (ascendc::MatmulSetOrgShapeOp)](#ascendc-matmul-set-org-shape-ascendc-matmulsetorgshapeop) * [`ascendc.matmul.set_quant_scalar` (ascendc::MatmulSetQuantScalarOp)](#ascendc-matmul-set-quant-scalar-ascendc-matmulsetquantscalarop) * [`ascendc.matmul.set_quant_vector` (ascendc::MatmulSetQuantVectorOp)](#ascendc-matmul-set-quant-vector-ascendc-matmulsetquantvectorop) * [`ascendc.matmul.set_self_define_data` (ascendc::MatmulSetSelfDefineDataOp)](#ascendc-matmul-set-self-define-data-ascendc-matmulsetselfdefinedataop) * [`ascendc.matmul.set_single_shape` (ascendc::MatmulSetSingleShapeOp)](#ascendc-matmul-set-single-shape-ascendc-matmulsetsingleshapeop) * [`ascendc.matmul.set_sparse_index` (ascendc::MatmulSetSparseIndexOp)](#ascendc-matmul-set-sparse-index-ascendc-matmulsetsparseindexop) * [`ascendc.matmul.set_tail` (ascendc::MatmulSetTailOp)](#ascendc-matmul-set-tail-ascendc-matmulsettailop) * [`ascendc.matmul.set_tensor_a` (ascendc::MatmulSetTensorAOp)](#ascendc-matmul-set-tensor-a-ascendc-matmulsettensoraop) * [`ascendc.matmul.set_tensor_a_scalar` (ascendc::MatmulSetTensorAScalarOp)](#ascendc-matmul-set-tensor-a-scalar-ascendc-matmulsettensorascalarop) * [`ascendc.matmul.set_tensor_b` (ascendc::MatmulSetTensorBOp)](#ascendc-matmul-set-tensor-b-ascendc-matmulsettensorbop) * [`ascendc.matmul.set_tensor_b_scalar` (ascendc::MatmulSetTensorBScalarOp)](#ascendc-matmul-set-tensor-b-scalar-ascendc-matmulsettensorbscalarop) * [`ascendc.matmul.set_user_def_info` (ascendc::MatmulSetUserDefInfoOp)](#ascendc-matmul-set-user-def-info-ascendc-matmulsetuserdefinfoop) * [`ascendc.matmul.set_workspace` (ascendc::MatmulSetWorkspaceOp)](#ascendc-matmul-set-workspace-ascendc-matmulsetworkspaceop) * [`ascendc.matmul.wait_get_tensor_c` (ascendc::MatmulWaitGetTensorCOp)](#ascendc-matmul-wait-get-tensor-c-ascendc-matmulwaitgettensorcop) * [`ascendc.matmul.wait_iterate_all` (ascendc::MatmulWaitIterateAllOp)](#ascendc-matmul-wait-iterate-all-ascendc-matmulwaititerateallop) * [`ascendc.matmul.wait_iterate_batch` (ascendc::MatmulWaitIterateBatchOp)](#ascendc-matmul-wait-iterate-batch-ascendc-matmulwaititeratebatchop) * [`ascendc.max_l0` (ascendc::MaxL0Op)](#ascendc-max-l0-ascendc-maxl0op) * [`ascendc.max_l1` (ascendc::MaxL1Op)](#ascendc-max-l1-ascendc-maxl1op) * [`ascendc.max_l2` (ascendc::MaxL2Op)](#ascendc-max-l2-ascendc-maxl2op) * [`ascendc.maxs_l0` (ascendc::MaxsL0Op)](#ascendc-maxs-l0-ascendc-maxsl0op) * [`ascendc.maxs_l1` (ascendc::MaxsL1Op)](#ascendc-maxs-l1-ascendc-maxsl1op) * [`ascendc.maxs_l2` (ascendc::MaxsL2Op)](#ascendc-maxs-l2-ascendc-maxsl2op) * [`ascendc.metrics_prof_start` (ascendc::MetricsProfStartOp)](#ascendc-metrics-prof-start-ascendc-metricsprofstartop) * [`ascendc.metrics_prof_stop` (ascendc::MetricsProfStopOp)](#ascendc-metrics-prof-stop-ascendc-metricsprofstopop) * [`ascendc.min_l0` (ascendc::MinL0Op)](#ascendc-min-l0-ascendc-minl0op) * [`ascendc.min_l1` (ascendc::MinL1Op)](#ascendc-min-l1-ascendc-minl1op) * [`ascendc.min_l2` (ascendc::MinL2Op)](#ascendc-min-l2-ascendc-minl2op) * [`ascendc.mins_l0` (ascendc::MinsL0Op)](#ascendc-mins-l0-ascendc-minsl0op) * [`ascendc.mins_l1` (ascendc::MinsL1Op)](#ascendc-mins-l1-ascendc-minsl1op) * [`ascendc.mins_l2` (ascendc::MinsL2Op)](#ascendc-mins-l2-ascendc-minsl2op) * [`ascendc.mmad` (ascendc::MmadOp)](#ascendc-mmad-ascendc-mmadop) * [`ascendc.mmad_with_bias` (ascendc::MmadWithBiasOp)](#ascendc-mmad-with-bias-ascendc-mmadwithbiasop) * [`ascendc.mmad_with_sparse` (ascendc::MmadWithSparseOp)](#ascendc-mmad-with-sparse-ascendc-mmadwithsparseop) * [`ascendc.mrg_sort` (ascendc::MrgSortOp)](#ascendc-mrg-sort-ascendc-mrgsortop) * [`ascendc.mrg_sort4` (ascendc::MrgSort4Op)](#ascendc-mrg-sort4-ascendc-mrgsort4op) * [`ascendc.mrg_sort_src_list` (ascendc::MrgSortSrcListOp)](#ascendc-mrg-sort-src-list-ascendc-mrgsortsrclistop) * [`ascendc.mrg_sort_with_info` (ascendc::MrgSortWithInfoOp)](#ascendc-mrg-sort-with-info-ascendc-mrgsortwithinfoop) * [`ascendc.mul_add_dst_l0` (ascendc::MulAddDstL0Op)](#ascendc-mul-add-dst-l0-ascendc-muladddstl0op) * [`ascendc.mul_add_dst_l1` (ascendc::MulAddDstL1Op)](#ascendc-mul-add-dst-l1-ascendc-muladddstl1op) * [`ascendc.mul_add_dst_l2` (ascendc::MulAddDstL2Op)](#ascendc-mul-add-dst-l2-ascendc-muladddstl2op) * [`ascendc.mul_cast_l0` (ascendc::MulCastL0Op)](#ascendc-mul-cast-l0-ascendc-mulcastl0op) * [`ascendc.mul_cast_l1` (ascendc::MulCastL1Op)](#ascendc-mul-cast-l1-ascendc-mulcastl1op) * [`ascendc.mul_cast_l2` (ascendc::MulCastL2Op)](#ascendc-mul-cast-l2-ascendc-mulcastl2op) * [`ascendc.mul_l0` (ascendc::MulL0Op)](#ascendc-mul-l0-ascendc-mull0op) * [`ascendc.mul_l1` (ascendc::MulL1Op)](#ascendc-mul-l1-ascendc-mull1op) * [`ascendc.mul_l2` (ascendc::MulL2Op)](#ascendc-mul-l2-ascendc-mull2op) * [`ascendc.mul_l3` (ascendc::MulL3Op)](#ascendc-mul-l3-ascendc-mull3op) * [`ascendc.muls_l0` (ascendc::MulsL0Op)](#ascendc-muls-l0-ascendc-mulsl0op) * [`ascendc.muls_l1` (ascendc::MulsL1Op)](#ascendc-muls-l1-ascendc-mulsl1op) * [`ascendc.muls_l2` (ascendc::MulsL2Op)](#ascendc-muls-l2-ascendc-mulsl2op) * [`ascendc.neg_l2` (ascendc::NegL2Op)](#ascendc-neg-l2-ascendc-negl2op) * [`ascendc.noop` (ascendc::NoOp)](#ascendc-noop-ascendc-noop) * [`ascendc.not_l0` (ascendc::NotL0Op)](#ascendc-not-l0-ascendc-notl0op) * [`ascendc.not_l1` (ascendc::NotL1Op)](#ascendc-not-l1-ascendc-notl1op) * [`ascendc.not_l2` (ascendc::NotL2Op)](#ascendc-not-l2-ascendc-notl2op) * [`ascendc.notify_next_block` (ascendc::NotifyNextBlockOp)](#ascendc-notify-next-block-ascendc-notifynextblockop) * [`ascendc.or_l0` (ascendc::OrL0Op)](#ascendc-or-l0-ascendc-orl0op) * [`ascendc.or_l1` (ascendc::OrL1Op)](#ascendc-or-l1-ascendc-orl1op) * [`ascendc.or_l2` (ascendc::OrL2Op)](#ascendc-or-l2-ascendc-orl2op) * [`ascendc.pair_reduce_sum_l0` (ascendc::PairReduceSumL0Op)](#ascendc-pair-reduce-sum-l0-ascendc-pairreducesuml0op) * [`ascendc.pair_reduce_sum_l1` (ascendc::PairReduceSumL1Op)](#ascendc-pair-reduce-sum-l1-ascendc-pairreducesuml1op) * [`ascendc.pipe` (ascendc::PipeOp)](#ascendc-pipe-ascendc-pipeop) * [`ascendc.pipe.alloc_event_id` (ascendc::TPipeAllocEventIDOp)](#ascendc-pipe-alloc-event-id-ascendc-tpipealloceventidop) * [`ascendc.pipe.destroy` (ascendc::TPipeTQueBindDestroyOp)](#ascendc-pipe-destroy-ascendc-tpipetquebinddestroyop) * [`ascendc.pipe.fetch_event_id` (ascendc::TPipeFetchEventIDOp)](#ascendc-pipe-fetch-event-id-ascendc-tpipefetcheventidop) * [`ascendc.pipe.get_base_addr` (ascendc::TPipeGetBaseAddrOp)](#ascendc-pipe-get-base-addr-ascendc-tpipegetbaseaddrop) * [`ascendc.pipe.init` (ascendc::TPipeInitOp)](#ascendc-pipe-init-ascendc-tpipeinitop) * [`ascendc.pipe.init_buf_pool` (ascendc::TPipeInitBufPoolOp)](#ascendc-pipe-init-buf-pool-ascendc-tpipeinitbufpoolop) * [`ascendc.pipe.init_buffer` (ascendc::TPipeInitBufferOp)](#ascendc-pipe-init-buffer-ascendc-tpipeinitbufferop) * [`ascendc.pipe.init_queue` (ascendc::TPipeInitQueueOp)](#ascendc-pipe-init-queue-ascendc-tpipeinitqueueop) * [`ascendc.pipe.release_event_id` (ascendc::TPipeReleaseEventIDOp)](#ascendc-pipe-release-event-id-ascendc-tpipereleaseeventidop) * [`ascendc.pipe.reset` (ascendc::TPipeResetOp)](#ascendc-pipe-reset-ascendc-tpiperesetop) * [`ascendc.pipe_barrier` (ascendc::PipeBarrierOp)](#ascendc-pipe-barrier-ascendc-pipebarrierop) * [`ascendc.pop_stack_buffer` (ascendc::PopStackBufferOp)](#ascendc-pop-stack-buffer-ascendc-popstackbufferop) * [`ascendc.power` (ascendc::PowerOp)](#ascendc-power-ascendc-powerop) * [`ascendc.prelu_l2` (ascendc::PreluL2Op)](#ascendc-prelu-l2-ascendc-prelul2op) * [`ascendc.print_time_stamp` (ascendc::PrintTimeStampOp)](#ascendc-print-time-stamp-ascendc-printtimestampop) * [`ascendc.printf` (ascendc::PrintfOp)](#ascendc-printf-ascendc-printfop) * [`ascendc.proposal_concat` (ascendc::ProposalConcatOp)](#ascendc-proposal-concat-ascendc-proposalconcatop) * [`ascendc.proposal_extract` (ascendc::ProposalExtractOp)](#ascendc-proposal-extract-ascendc-proposalextractop) * [`ascendc.quant` (ascendc::QuantOp)](#ascendc-quant-ascendc-quantop) * [`ascendc.que_bind` (ascendc::QueBindOp)](#ascendc-que-bind-ascendc-quebindop) * [`ascendc.que_bind.alloc_tensor` (ascendc::TQueBindAllocTensorOp)](#ascendc-que-bind-alloc-tensor-ascendc-tquebindalloctensorop) * [`ascendc.que_bind.alloc_tensor_in_place` (ascendc::TQueBindAllocTensorInPlaceOp)](#ascendc-que-bind-alloc-tensor-in-place-ascendc-tquebindalloctensorinplaceop) * [`ascendc.que_bind.deque_tensor` (ascendc::TQueBindDequeTensorOp)](#ascendc-que-bind-deque-tensor-ascendc-tquebinddequetensorop) * [`ascendc.que_bind.deque_tensor_in_place` (ascendc::TQueBindDequeTensorInPlaceOp)](#ascendc-que-bind-deque-tensor-in-place-ascendc-tquebinddequetensorinplaceop) * [`ascendc.que_bind.deque_tensor_pos` (ascendc::TQueBindDequeTensorPosOp)](#ascendc-que-bind-deque-tensor-pos-ascendc-tquebinddequetensorposop) * [`ascendc.que_bind.destroy` (ascendc::TQueBindDestroyOp)](#ascendc-que-bind-destroy-ascendc-tquebinddestroyop) * [`ascendc.que_bind.enque_tensor` (ascendc::TQueBindEnqueTensorOp)](#ascendc-que-bind-enque-tensor-ascendc-tquebindenquetensorop) * [`ascendc.que_bind.enque_tensor_pos` (ascendc::TQueBindEnqueTensorPosOp)](#ascendc-que-bind-enque-tensor-pos-ascendc-tquebindenquetensorposop) * [`ascendc.que_bind.free_tensor` (ascendc::TQueBindFreeTensorOp)](#ascendc-que-bind-free-tensor-ascendc-tquebindfreetensorop) * [`ascendc.que_bind.get_tensor_count_in_que` (ascendc::TQueBindGetTensorCountInQueOp)](#ascendc-que-bind-get-tensor-count-in-que-ascendc-tquebindgettensorcountinqueop) * [`ascendc.que_bind.has_idle_buffer` (ascendc::TQueBindHasIdleBufferOp)](#ascendc-que-bind-has-idle-buffer-ascendc-tquebindhasidlebufferop) * [`ascendc.que_bind.has_tensor_in_que` (ascendc::TQueBindHasTensorInQueOp)](#ascendc-que-bind-has-tensor-in-que-ascendc-tquebindhastensorinqueop) * [`ascendc.que_bind.init_buf_handle` (ascendc::TQueBindInitBufHandleOp)](#ascendc-que-bind-init-buf-handle-ascendc-tquebindinitbufhandleop) * [`ascendc.que_bind.init_start_buf_handle` (ascendc::TQueBindInitStartBufHandleOp)](#ascendc-que-bind-init-start-buf-handle-ascendc-tquebindinitstartbufhandleop) * [`ascendc.que_bind.vacant_in_que` (ascendc::TQueBindVacantInQueOp)](#ascendc-que-bind-vacant-in-que-ascendc-tquebindvacantinqueop) * [`ascendc.queue` (ascendc::QueueOp)](#ascendc-queue-ascendc-queueop) * [`ascendc.reciprocal_l0` (ascendc::ReciprocalL0Op)](#ascendc-reciprocal-l0-ascendc-reciprocall0op) * [`ascendc.reciprocal_l1` (ascendc::ReciprocalL1Op)](#ascendc-reciprocal-l1-ascendc-reciprocall1op) * [`ascendc.reciprocal_l2` (ascendc::ReciprocalL2Op)](#ascendc-reciprocal-l2-ascendc-reciprocall2op) * [`ascendc.reduce_max` (ascendc::ReduceMaxOp)](#ascendc-reduce-max-ascendc-reducemaxop) * [`ascendc.reduce_max_l0` (ascendc::ReduceMaxL0Op)](#ascendc-reduce-max-l0-ascendc-reducemaxl0op) * [`ascendc.reduce_max_l1` (ascendc::ReduceMaxL1Op)](#ascendc-reduce-max-l1-ascendc-reducemaxl1op) * [`ascendc.reduce_max_l2` (ascendc::ReduceMaxL2Op)](#ascendc-reduce-max-l2-ascendc-reducemaxl2op) * [`ascendc.reduce_min` (ascendc::ReduceMinOp)](#ascendc-reduce-min-ascendc-reduceminop) * [`ascendc.reduce_min_l0` (ascendc::ReduceMinL0Op)](#ascendc-reduce-min-l0-ascendc-reduceminl0op) * [`ascendc.reduce_min_l1` (ascendc::ReduceMinL1Op)](#ascendc-reduce-min-l1-ascendc-reduceminl1op) * [`ascendc.reduce_min_l2` (ascendc::ReduceMinL2Op)](#ascendc-reduce-min-l2-ascendc-reduceminl2op) * [`ascendc.reduce_prod` (ascendc::ReduceProdOp)](#ascendc-reduce-prod-ascendc-reduceprodop) * [`ascendc.reduce_sum` (ascendc::ReduceSumOp)](#ascendc-reduce-sum-ascendc-reducesumop) * [`ascendc.reduce_sum_l0` (ascendc::ReduceSumL0Op)](#ascendc-reduce-sum-l0-ascendc-reducesuml0op) * [`ascendc.reduce_sum_l1` (ascendc::ReduceSumL1Op)](#ascendc-reduce-sum-l1-ascendc-reducesuml1op) * [`ascendc.reduce_sum_l2` (ascendc::ReduceSumL2Op)](#ascendc-reduce-sum-l2-ascendc-reducesuml2op) * [`ascendc.regist_matmul_obj` (ascendc::RegistMatmulObjOp)](#ascendc-regist-matmul-obj-ascendc-registmatmulobjop) * [`ascendc.reinterpret_cast` (ascendc::LocalTensorReinterpretCastOp)](#ascendc-reinterpret-cast-ascendc-localtensorreinterpretcastop) * [`ascendc.relu_l0` (ascendc::ReluL0Op)](#ascendc-relu-l0-ascendc-relul0op) * [`ascendc.relu_l1` (ascendc::ReluL1Op)](#ascendc-relu-l1-ascendc-relul1op) * [`ascendc.relu_l2` (ascendc::ReluL2Op)](#ascendc-relu-l2-ascendc-relul2op) * [`ascendc.repeat_reduce_sum_l0` (ascendc::RepeatReduceSumL0Op)](#ascendc-repeat-reduce-sum-l0-ascendc-repeatreducesuml0op) * [`ascendc.reset_mask` (ascendc::ResetMaskOp)](#ascendc-reset-mask-ascendc-resetmaskop) * [`ascendc.rls_buf` (ascendc::RlsBufOp)](#ascendc-rls-buf-ascendc-rlsbufop) * [`ascendc.rmsnorm` (ascendc::RmsNormOp)](#ascendc-rmsnorm-ascendc-rmsnormop) * [`ascendc.round` (ascendc::RoundOp)](#ascendc-round-ascendc-roundop) * [`ascendc.rp_sort16` (ascendc::RpSort16Op)](#ascendc-rp-sort16-ascendc-rpsort16op) * [`ascendc.rsqrt_l0` (ascendc::RsqrtL0Op)](#ascendc-rsqrt-l0-ascendc-rsqrtl0op) * [`ascendc.rsqrt_l1` (ascendc::RsqrtL1Op)](#ascendc-rsqrt-l1-ascendc-rsqrtl1op) * [`ascendc.rsqrt_l2` (ascendc::RsqrtL2Op)](#ascendc-rsqrt-l2-ascendc-rsqrtl2op) * [`ascendc.scalar_cast` (ascendc::ScalarCastOp)](#ascendc-scalar-cast-ascendc-scalarcastop) * [`ascendc.scalar_count_leading_zero` (ascendc::ScalarCountLeadingZeroOp)](#ascendc-scalar-count-leading-zero-ascendc-scalarcountleadingzeroop) * [`ascendc.scalar_get_count_of_value` (ascendc::ScalarGetCountOfValueOp)](#ascendc-scalar-get-count-of-value-ascendc-scalargetcountofvalueop) * [`ascendc.scalar_get_sff_value` (ascendc::ScalarGetSFFValueOp)](#ascendc-scalar-get-sff-value-ascendc-scalargetsffvalueop) * [`ascendc.scatter_l0` (ascendc::ScatterL0Op)](#ascendc-scatter-l0-ascendc-scatterl0op) * [`ascendc.scatter_l1` (ascendc::ScatterL1Op)](#ascendc-scatter-l1-ascendc-scatterl1op) * [`ascendc.scatter_l2` (ascendc::ScatterL2Op)](#ascendc-scatter-l2-ascendc-scatterl2op) * [`ascendc.select_l0` (ascendc::SelectL0Op)](#ascendc-select-l0-ascendc-selectl0op) * [`ascendc.select_l1` (ascendc::SelectL1Op)](#ascendc-select-l1-ascendc-selectl1op) * [`ascendc.select_l2` (ascendc::SelectL2Op)](#ascendc-select-l2-ascendc-selectl2op) * [`ascendc.select_reg` (ascendc::SelectRegOp)](#ascendc-select-reg-ascendc-selectregop) * [`ascendc.select_scalar_l0` (ascendc::SelectScalarL0Op)](#ascendc-select-scalar-l0-ascendc-selectscalarl0op) * [`ascendc.select_scalar_l1` (ascendc::SelectScalarL1Op)](#ascendc-select-scalar-l1-ascendc-selectscalarl1op) * [`ascendc.select_scalar_l2` (ascendc::SelectScalarL2Op)](#ascendc-select-scalar-l2-ascendc-selectscalarl2op) * [`ascendc.select_scalar_reg` (ascendc::SelectScalarRegOp)](#ascendc-select-scalar-reg-ascendc-selectscalarregop) * [`ascendc.set_aipp_functions` (ascendc::SetAippFunctionsOp)](#ascendc-set-aipp-functions-ascendc-setaippfunctionsop) * [`ascendc.set_atomic_add` (ascendc::SetAtomicAddOp)](#ascendc-set-atomic-add-ascendc-setatomicaddop) * [`ascendc.set_atomic_max` (ascendc::SetAtomicMaxOp)](#ascendc-set-atomic-max-ascendc-setatomicmaxop) * [`ascendc.set_atomic_min` (ascendc::SetAtomicMinOp)](#ascendc-set-atomic-min-ascendc-setatomicminop) * [`ascendc.set_atomic_none` (ascendc::SetAtomicNoneOp)](#ascendc-set-atomic-none-ascendc-setatomicnoneop) * [`ascendc.set_atomic_type` (ascendc::SetAtomicTypeOp)](#ascendc-set-atomic-type-ascendc-setatomictypeop) * [`ascendc.set_cmp_mask` (ascendc::SetCmpMaskOp)](#ascendc-set-cmp-mask-ascendc-setcmpmaskop) * [`ascendc.set_deq_scale` (ascendc::SetDeqScaleOp)](#ascendc-set-deq-scale-ascendc-setdeqscaleop) * [`ascendc.set_deq_scale_l4` (ascendc::SetDeqScaleL4Op)](#ascendc-set-deq-scale-l4-ascendc-setdeqscalel4op) * [`ascendc.set_ffts_base_addr` (ascendc::SetFftsBaseAddrOp)](#ascendc-set-ffts-base-addr-ascendc-setfftsbaseaddrop) * [`ascendc.set_fixpipe_pre_quant_flag` (ascendc::SetFixpipePreQuantFlagOp)](#ascendc-set-fixpipe-pre-quant-flag-ascendc-setfixpipeprequantflagop) * [`ascendc.set_flag` (ascendc::SetFlagOp)](#ascendc-set-flag-ascendc-setflagop) * [`ascendc.set_fmatrix` (ascendc::SetFmatrixOp)](#ascendc-set-fmatrix-ascendc-setfmatrixop) * [`ascendc.set_hccl_context` (ascendc::SetHcclContextOp)](#ascendc-set-hccl-context-ascendc-sethcclcontextop) * [`ascendc.set_hf32_mode` (ascendc::SetHF32ModeOp)](#ascendc-set-hf32-mode-ascendc-sethf32modeop) * [`ascendc.set_hf32_trans_mode` (ascendc::SetHF32TransModeOp)](#ascendc-set-hf32-trans-mode-ascendc-sethf32transmodeop) * [`ascendc.set_load_data_boundary` (ascendc::SetLoadDataBoundaryOp)](#ascendc-set-load-data-boundary-ascendc-setloaddataboundaryop) * [`ascendc.set_load_data_padding_value` (ascendc::SetLoadDataPaddingValueOp)](#ascendc-set-load-data-padding-value-ascendc-setloaddatapaddingvalueop) * [`ascendc.set_load_data_repeat` (ascendc::SetLoadDataRepeatOp)](#ascendc-set-load-data-repeat-ascendc-setloaddatarepeatop) * [`ascendc.set_mask_count` (ascendc::SetMaskCountOp)](#ascendc-set-mask-count-ascendc-setmaskcountop) * [`ascendc.set_mask_norm` (ascendc::SetMaskNormOp)](#ascendc-set-mask-norm-ascendc-setmasknormop) * [`ascendc.set_mm_layout_transform` (ascendc::SetMMLayoutTransformOp)](#ascendc-set-mm-layout-transform-ascendc-setmmlayouttransformop) * [`ascendc.set_pad_value` (ascendc::SetPadValueOp)](#ascendc-set-pad-value-ascendc-setpadvalueop) * [`ascendc.set_store_atomic_config` (ascendc::SetStoreAtomicConfigOp)](#ascendc-set-store-atomic-config-ascendc-setstoreatomicconfigop) * [`ascendc.set_sys_workspace` (ascendc::SetSysWorkspaceOp)](#ascendc-set-sys-workspace-ascendc-setsysworkspaceop) * [`ascendc.set_vector_mask_l0` (ascendc::SetVectorMaskL0Op)](#ascendc-set-vector-mask-l0-ascendc-setvectormaskl0op) * [`ascendc.set_vector_mask_l1` (ascendc::SetVectorMaskL1Op)](#ascendc-set-vector-mask-l1-ascendc-setvectormaskl1op) * [`ascendc.shape_info.original_shape` (ascendc::ShapeInfoOriginalShapeOp)](#ascendc-shape-info-original-shape-ascendc-shapeinfooriginalshapeop) * [`ascendc.shape_info.shape` (ascendc::ShapeInfoShapeOp)](#ascendc-shape-info-shape-ascendc-shapeinfoshapeop) * [`ascendc.shift_left_l0` (ascendc::ShiftLeftL0Op)](#ascendc-shift-left-l0-ascendc-shiftleftl0op) * [`ascendc.shift_left_l1` (ascendc::ShiftLeftL1Op)](#ascendc-shift-left-l1-ascendc-shiftleftl1op) * [`ascendc.shift_left_l2` (ascendc::ShiftLeftL2Op)](#ascendc-shift-left-l2-ascendc-shiftleftl2op) * [`ascendc.shift_right_l0` (ascendc::ShiftRightL0Op)](#ascendc-shift-right-l0-ascendc-shiftrightl0op) * [`ascendc.shift_right_l1` (ascendc::ShiftRightL1Op)](#ascendc-shift-right-l1-ascendc-shiftrightl1op) * [`ascendc.shift_right_l2` (ascendc::ShiftRightL2Op)](#ascendc-shift-right-l2-ascendc-shiftrightl2op) * [`ascendc.sign` (ascendc::SignOp)](#ascendc-sign-ascendc-signop) * [`ascendc.simple_softmax` (ascendc::SimpleSoftMaxOp)](#ascendc-simple-softmax-ascendc-simplesoftmaxop) * [`ascendc.sin` (ascendc::SinOp)](#ascendc-sin-ascendc-sinop) * [`ascendc.sinh` (ascendc::SinhOp)](#ascendc-sinh-ascendc-sinhop) * [`ascendc.slice_info.subindex` (ascendc::SliceInfoSubIndexOp)](#ascendc-slice-info-subindex-ascendc-sliceinfosubindexop) * [`ascendc.softmax` (ascendc::SoftMaxOp)](#ascendc-softmax-ascendc-softmaxop) * [`ascendc.sort` (ascendc::SortOp)](#ascendc-sort-ascendc-sortop) * [`ascendc.sort32` (ascendc::Sort32Op)](#ascendc-sort32-ascendc-sort32op) * [`ascendc.sqrt_l0` (ascendc::SqrtL0Op)](#ascendc-sqrt-l0-ascendc-sqrtl0op) * [`ascendc.sqrt_l1` (ascendc::SqrtL1Op)](#ascendc-sqrt-l1-ascendc-sqrtl1op) * [`ascendc.sqrt_l2` (ascendc::SqrtL2Op)](#ascendc-sqrt-l2-ascendc-sqrtl2op) * [`ascendc.sub_l0` (ascendc::SubL0Op)](#ascendc-sub-l0-ascendc-subl0op) * [`ascendc.sub_l1` (ascendc::SubL1Op)](#ascendc-sub-l1-ascendc-subl1op) * [`ascendc.sub_l2` (ascendc::SubL2Op)](#ascendc-sub-l2-ascendc-subl2op) * [`ascendc.sub_l3` (ascendc::SubL3Op)](#ascendc-sub-l3-ascendc-subl3op) * [`ascendc.sub_relu_cast_l0` (ascendc::SubReluCastL0Op)](#ascendc-sub-relu-cast-l0-ascendc-subrelucastl0op) * [`ascendc.sub_relu_cast_l1` (ascendc::SubReluCastL1Op)](#ascendc-sub-relu-cast-l1-ascendc-subrelucastl1op) * [`ascendc.sub_relu_cast_l2` (ascendc::SubReluCastL2Op)](#ascendc-sub-relu-cast-l2-ascendc-subrelucastl2op) * [`ascendc.sub_relu_l0` (ascendc::SubReluL0Op)](#ascendc-sub-relu-l0-ascendc-subrelul0op) * [`ascendc.sub_relu_l1` (ascendc::SubReluL1Op)](#ascendc-sub-relu-l1-ascendc-subrelul1op) * [`ascendc.sub_relu_l2` (ascendc::SubReluL2Op)](#ascendc-sub-relu-l2-ascendc-subrelul2op) * [`ascendc.subs_l0` (ascendc::SubsL0Op)](#ascendc-subs-l0-ascendc-subsl0op) * [`ascendc.subs_l1` (ascendc::SubsL1Op)](#ascendc-subs-l1-ascendc-subsl1op) * [`ascendc.subs_l2` (ascendc::SubsL2Op)](#ascendc-subs-l2-ascendc-subsl2op) * [`ascendc.sync_all_hard` (ascendc::SyncAllHardOp)](#ascendc-sync-all-hard-ascendc-syncallhardop) * [`ascendc.sync_all_soft` (ascendc::SyncAllSoftOp)](#ascendc-sync-all-soft-ascendc-syncallsoftop) * [`ascendc.tan` (ascendc::TanOp)](#ascendc-tan-ascendc-tanop) * [`ascendc.tanh` (ascendc::TanhOp)](#ascendc-tanh-ascendc-tanhop) * [`ascendc.tbuf` (ascendc::TBufOp)](#ascendc-tbuf-ascendc-tbufop) * [`ascendc.tbuf.get_tensor` (ascendc::TBufGetTensorOp)](#ascendc-tbuf-get-tensor-ascendc-tbufgettensorop) * [`ascendc.tbuf.get_with_offset` (ascendc::TBufGetWithOffsetOp)](#ascendc-tbuf-get-with-offset-ascendc-tbufgetwithoffsetop) * [`ascendc.tbuf_pool.init_buf_pool` (ascendc::TBufPoolInitBufPoolOp)](#ascendc-tbuf-pool-init-buf-pool-ascendc-tbufpoolinitbufpoolop) * [`ascendc.tbuf_pool.init_buffer` (ascendc::TBufPoolInitBufferOp)](#ascendc-tbuf-pool-init-buffer-ascendc-tbufpoolinitbufferop) * [`ascendc.tbuf_pool.init_queue` (ascendc::TBufPoolInitQueueOp)](#ascendc-tbuf-pool-init-queue-ascendc-tbufpoolinitqueueop) * [`ascendc.tbuf_pool.reset` (ascendc::TBufPoolResetOp)](#ascendc-tbuf-pool-reset-ascendc-tbufpoolresetop) * [`ascendc.tBufPool` (ascendc::TBufPoolOp)](#ascendc-tbufpool-ascendc-tbufpoolop) * [`ascendc.tensor_desc` (ascendc::TensorDescOp)](#ascendc-tensor-desc-ascendc-tensordescop) * [`ascendc.tensor_desc_get_data_obj` (ascendc::TensorDescGetDataObjOp)](#ascendc-tensor-desc-get-data-obj-ascendc-tensordescgetdataobjop) * [`ascendc.tensor_desc_get_data_ptr` (ascendc::TensorDescGetDataPtrOp)](#ascendc-tensor-desc-get-data-ptr-ascendc-tensordescgetdataptrop) * [`ascendc.tensor_desc_get_dim` (ascendc::TensorDescGetDimOp)](#ascendc-tensor-desc-get-dim-ascendc-tensordescgetdimop) * [`ascendc.tensor_desc_get_index` (ascendc::TensorDescGetIndexOp)](#ascendc-tensor-desc-get-index-ascendc-tensordescgetindexop) * [`ascendc.tensor_desc_get_shape` (ascendc::TensorDescGetShapeOp)](#ascendc-tensor-desc-get-shape-ascendc-tensordescgetshapeop) * [`ascendc.tensor_desc_set_shape_addr` (ascendc::TensorDescSetShapeAddrOp)](#ascendc-tensor-desc-set-shape-addr-ascendc-tensordescsetshapeaddrop) * [`ascendc.to_que_bind` (ascendc::ToQueBindOp)](#ascendc-to-que-bind-ascendc-toquebindop) * [`ascendc.trans_data_to_5hd` (ascendc::TransDataTo5HDOp)](#ascendc-trans-data-to-5hd-ascendc-transdatato5hdop) * [`ascendc.trans_data_to_5hd_tensor_list` (ascendc::TransDataTo5HDTensorListOp)](#ascendc-trans-data-to-5hd-tensor-list-ascendc-transdatato5hdtensorlistop) * [`ascendc.trans_data_to_5hd_uint_list` (ascendc::TransDataTo5HDUintListOp)](#ascendc-trans-data-to-5hd-uint-list-ascendc-transdatato5hduintlistop) * [`ascendc.transpose` (ascendc::TransposeOp)](#ascendc-transpose-ascendc-transposeop) * [`ascendc.transpose_ext` (ascendc::TransposeExtOp)](#ascendc-transpose-ext-ascendc-transposeextop) * [`ascendc.trap` (ascendc::TrapOp)](#ascendc-trap-ascendc-trapop) * [`ascendc.trunc` (ascendc::TruncOp)](#ascendc-trunc-ascendc-truncop) * [`ascendc.wait_flag` (ascendc::WaitFlagOp)](#ascendc-wait-flag-ascendc-waitflagop) * [`ascendc.wait_pre_block` (ascendc::WaitPreBlockOp)](#ascendc-wait-pre-block-ascendc-waitpreblockop) * [`ascendc.whole_reduce_max_l0` (ascendc::WholeReduceMaxL0Op)](#ascendc-whole-reduce-max-l0-ascendc-wholereducemaxl0op) * [`ascendc.whole_reduce_max_l1` (ascendc::WholeReduceMaxL1Op)](#ascendc-whole-reduce-max-l1-ascendc-wholereducemaxl1op) * [`ascendc.whole_reduce_min_l0` (ascendc::WholeReduceMinL0Op)](#ascendc-whole-reduce-min-l0-ascendc-wholereduceminl0op) * [`ascendc.whole_reduce_min_l1` (ascendc::WholeReduceMinL1Op)](#ascendc-whole-reduce-min-l1-ascendc-wholereduceminl1op) * [`ascendc.whole_reduce_sum_l0` (ascendc::WholeReduceSumL0Op)](#ascendc-whole-reduce-sum-l0-ascendc-wholereducesuml0op) * [`ascendc.whole_reduce_sum_l1` (ascendc::WholeReduceSumL1Op)](#ascendc-whole-reduce-sum-l1-ascendc-wholereducesuml1op) * [`ascendc.xor` (ascendc::XorOp)](#ascendc-xor-ascendc-xorop) * [Attributes](#attributes) * [APIAttr](#apiattr) * [MatmulConfigAttr](#matmulconfigattr) * [SampleAttr](#sampleattr) * [Types](#types) * [AippChannelPaddingParamsType](#aippchannelpaddingparamstype) * [AippColorSpaceConvParamsType](#aippcolorspaceconvparamstype) * [AippDataTypeConvParamsType](#aippdatatypeconvparamstype) * [AippInputFormatType](#aippinputformattype) * [AippPaddingParamsType](#aipppaddingparamstype) * [AippParamsType](#aippparamstype) * [AippSingleLineParamsType](#aippsinglelineparamstype) * [AippSwapParamsType](#aippswapparamstype) * [AscendQuantConfigType](#ascendquantconfigtype) * [BaseGlobalTensorType](#baseglobaltensortype) * [BaseLocalTensorType](#baselocaltensortype) * [BatchModeType](#batchmodetype) * [BatchOutModeType](#batchoutmodetype) * [BinaryRepeatParamsType](#binaryrepeatparamstype) * [BlockModeType](#blockmodetype) * [BrcbRepeatParamsType](#brcbrepeatparamstype) * [BufAddrType](#bufaddrtype) * [CO2LayoutType](#co2layouttype) * [CheckLocalMemoryIAParamType](#checklocalmemoryiaparamtype) * [CopyRepeatParamsType](#copyrepeatparamstype) * [DataCopyCO12DstParamsType](#datacopyco12dstparamstype) * [DataCopyEnhancedParamsType](#datacopyenhancedparamstype) * [DataCopyExtParamsType](#datacopyextparamstype) * [DataCopyPadExtParamsType](#datacopypadextparamstype) * [DataCopyPadParamsType](#datacopypadparamstype) * [DataCopyParamsType](#datacopyparamstype) * [DataFormatType](#dataformattype) * [DeqScaleType](#deqscaletype) * [FixpipeConfigType](#fixpipeconfigtype) * [FixpipeParamsType](#fixpipeparamstype) * [FixpipeParamsV220Type](#fixpipeparamsv220type) * [FmatrixModeType](#fmatrixmodetype) * [GatherMaskParamsType](#gathermaskparamstype) * [GatherRepeatParamsType](#gatherrepeatparamstype) * [GlobalTensorType](#globaltensortype) * [InitConstValueParamsType](#initconstvalueparamstype) * [IsResetLoad3dConfigType](#isresetload3dconfigtype) * [IterateModeType](#iteratemodetype) * [IterateOrderType](#iterateordertype) * [KfcServerType](#kfcservertype) * [ListTensorDescType](#listtensordesctype) * [LoadData2DParamsType](#loaddata2dparamstype) * [LoadData2DParamsV2Type](#loaddata2dparamsv2type) * [LoadData2dTransposeParamsType](#loaddata2dtransposeparamstype) * [LoadData2dTransposeParamsV2Type](#loaddata2dtransposeparamsv2type) * [LoadData3DParamsV1Type](#loaddata3dparamsv1type) * [LoadData3DParamsV2Type](#loaddata3dparamsv2type) * [LoadData3DParamsV2ProType](#loaddata3dparamsv2protype) * [LoadDataRepeatParamType](#loaddatarepeatparamtype) * [LoadImageToLocalParamsType](#loadimagetolocalparamstype) * [LocalMemAllocatorType](#localmemallocatortype) * [LocalTensorType](#localtensortype) * [MaskType](#masktype) * [MaskModeType](#maskmodetype) * [MatmulType](#matmultype) * [MatmulApiStaticTilingType](#matmulapistatictilingtype) * [MatmulConfigType](#matmulconfigtype) * [MatrixOffsetType](#matrixoffsettype) * [MmadParamsType](#mmadparamstype) * [MrgSort4InfoType](#mrgsort4infotype) * [MrgSortSrcListType](#mrgsortsrclisttype) * [Nd2NzParamsType](#nd2nzparamstype) * [Nz2NdParamsType](#nz2ndparamstype) * [Nz2NdParamsFullType](#nz2ndparamsfulltype) * [PipeType](#pipetype) * [QuantModesType](#quantmodestype) * [QuantParamsType](#quantparamstype) * [QueBindType](#quebindtype) * [QueueType](#queuetype) * [ReduceOrderType](#reduceordertype) * [RmsNormTilingType](#rmsnormtilingtype) * [ScheduleTypeType](#scheduletypetype) * [ShapeInfoType](#shapeinfotype) * [SliceInfoType](#sliceinfotype) * [SoftMaxShapeInfoType](#softmaxshapeinfotype) * [SoftMaxTilingType](#softmaxtilingtype) * [TBufType](#tbuftype) * [TBufPoolType](#tbufpooltype) * [TCubeTilingType](#tcubetilingtype) * [TensorDescType](#tensordesctype) * [TransDataTo5HDParamsType](#transdatato5hdparamstype) * [TransposeParamsExtType](#transposeparamsexttype) * [TransposeTypeType](#transposetypetype) * [UnaryRepeatParamsType](#unaryrepeatparamstype) * [VdeqInfoType](#vdeqinfotype) * [pad_tType](#pad-ttype) * [Enums](#enums) * [AddressSpace](#addressspace) * [AippInputFormat](#aippinputformat) * [AtomicDtype](#atomicdtype) * [AtomicOp](#atomicop) * [BatchMode](#batchmode) * [BatchOutMode](#batchoutmode) * [CMPMODE](#cmpmode) * [CO2Layout](#co2layout) * [CacheLine](#cacheline) * [CacheMode](#cachemode) * [CacheRwMode](#cacherwmode) * [CopyDirection](#copydirection) * [CubeFormat](#cubeformat) * [DcciDst](#dccidst) * [FmatrixMode](#fmatrixmode) * [GatherMaskMode](#gathermaskmode) * [HardEvent](#hardevent) * [Hardware](#hardware) * [IterateMode](#iteratemode) * [IterateOrder](#iterateorder) * [LayoutMode](#layoutmode) * [MaskMode](#maskmode) * [MatmulPolicy](#matmulpolicy) * [MemDsbT](#memdsbt) * [Pipe](#pipe) * [QuantMode](#quantmode) * [ReduceOrder](#reduceorder) * [ReducePattern](#reducepattern) * [RoundMode](#roundmode) * [ScheduleType](#scheduletype) * [SELMODE](#selmode) * [TPosition](#tposition) * [TransposeType](#transposetype) ## Operations ### `ascendc.abs_l0` (ascendc::AbsL0Op) _Call `AscendC::Abs` function_ Syntax: ``` operation ::= `ascendc.abs_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Abs` is a vector unary operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL0OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.abs_l1` (ascendc::AbsL1Op) _Call `AscendC::Abs` function_ Syntax: ``` operation ::= `ascendc.abs_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Abs` is a vector unary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.abs_l2` (ascendc::AbsL2Op) _Call `AscendC::Abs` function_ Syntax: ``` operation ::= `ascendc.abs_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Abs` is a vector unary operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL2OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.acos` (ascendc::AcosOp) _Call `AscendC::Acos` function_ Syntax: ``` operation ::= `ascendc.acos` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Acos` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.acosh` (ascendc::AcoshOp) _Call `AscendC::Acosh` function_ Syntax: ``` operation ::= `ascendc.acosh` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Acosh` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.add_deq_relu_l0` (ascendc::AddDeqReluL0Op) _Call `AscendC::AddDeqRelu` function_ Syntax: ``` operation ::= `ascendc.add_deq_relu_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::AddDeqRelu` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.add_deq_relu_l1` (ascendc::AddDeqReluL1Op) _Call `AscendC::AddDeqRelu` function_ Syntax: ``` operation ::= `ascendc.add_deq_relu_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::AddDeqRelu` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.add_deq_relu_l2` (ascendc::AddDeqReluL2Op) _Call `AscendC::AddDeqRelu` function_ Syntax: ``` operation ::= `ascendc.add_deq_relu_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::AddDeqRelu` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.add_l0` (ascendc::AddL0Op) _Call `AscendC::Add` function_ Syntax: ``` operation ::= `ascendc.add_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Add` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.add_l1` (ascendc::AddL1Op) _Call `AscendC::Add` function_ Syntax: ``` operation ::= `ascendc.add_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Add` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.add_l2` (ascendc::AddL2Op) _Call `AscendC::Add` function_ Syntax: ``` operation ::= `ascendc.add_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Add` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.add_l3` (ascendc::AddL3Op) _Call `LocalTensor::operator+` method_ Syntax: ``` operation ::= `ascendc.add_l3` operands attr-dict `:` qualified(type(operands)) ``` `LocalTensor::operator+` performs a vector binary operation (L3 API). Interfaces: `APIOpInterface`, `BinaryL3OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type ### `ascendc.add_relu_cast_l0` (ascendc::AddReluCastL0Op) _Call `AscendC::AddReluCast` function_ Syntax: ``` operation ::= `ascendc.add_relu_cast_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::AddReluCast` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.add_relu_cast_l1` (ascendc::AddReluCastL1Op) _Call `AscendC::AddReluCast` function_ Syntax: ``` operation ::= `ascendc.add_relu_cast_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::AddReluCast` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.add_relu_cast_l2` (ascendc::AddReluCastL2Op) _Call `AscendC::AddReluCast` function_ Syntax: ``` operation ::= `ascendc.add_relu_cast_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::AddReluCast` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.add_relu_l0` (ascendc::AddReluL0Op) _Call `AscendC::AddRelu` function_ Syntax: ``` operation ::= `ascendc.add_relu_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::AddRelu` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.add_relu_l1` (ascendc::AddReluL1Op) _Call `AscendC::AddRelu` function_ Syntax: ``` operation ::= `ascendc.add_relu_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::AddRelu` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.add_relu_l2` (ascendc::AddReluL2Op) _Call `AscendC::AddRelu` function_ Syntax: ``` operation ::= `ascendc.add_relu_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::AddRelu` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.adds_l0` (ascendc::AddsL0Op) _Call `AscendC::Adds` function_ Syntax: ``` operation ::= `ascendc.adds_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Adds` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.adds_l1` (ascendc::AddsL1Op) _Call `AscendC::Adds` function_ Syntax: ``` operation ::= `ascendc.adds_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Adds` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.adds_l2` (ascendc::AddsL2Op) _Call `AscendC::Adds` function_ Syntax: ``` operation ::= `ascendc.adds_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Adds` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.and_l0` (ascendc::AndL0Op) _Call `AscendC::And` function_ Syntax: ``` operation ::= `ascendc.and_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::And` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.and_l1` (ascendc::AndL1Op) _Call `AscendC::And` function_ Syntax: ``` operation ::= `ascendc.and_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::And` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.and_l2` (ascendc::AndL2Op) _Call `AscendC::And` function_ Syntax: ``` operation ::= `ascendc.and_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::And` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.ascend_is_aic` (ascendc::AscendIsAICOp) _Call `AscendC::AscendIsAIC` function_ Syntax: ``` operation ::= `ascendc.ascend_is_aic` attr-dict `:` type($result) ``` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `result` | any type ### `ascendc.ascend_is_aiv` (ascendc::AscendIsAIVOp) _Call `AscendC::AscendIsAIV` function_ Syntax: ``` operation ::= `ascendc.ascend_is_aiv` attr-dict `:` type($result) ``` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `result` | any type ### `ascendc.asin` (ascendc::AsinOp) _Call `AscendC::Asin` function_ Syntax: ``` operation ::= `ascendc.asin` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Asin` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.asinh` (ascendc::AsinhOp) _Call `AscendC::Asinh` function_ Syntax: ``` operation ::= `ascendc.asinh` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Asinh` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.atan` (ascendc::AtanOp) _Call `AscendC::Atan` function_ Syntax: ``` operation ::= `ascendc.atan` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Atan` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.atanh` (ascendc::AtanhOp) _Call `AscendC::Atanh` function_ Syntax: ``` operation ::= `ascendc.atanh` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Atanh` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.axpy` (ascendc::AxpyOp) _Call `AscendC::Axpy` function_ Syntax: ``` operation ::= `ascendc.axpy` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Axpy` is a math library operation. Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `scalar` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.axpy_l0` (ascendc::AxpyL0Op) _Call `AscendC::Axpy` function_ Syntax: ``` operation ::= `ascendc.axpy_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Axpy` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.axpy_l1` (ascendc::AxpyL1Op) _Call `AscendC::Axpy` function_ Syntax: ``` operation ::= `ascendc.axpy_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Axpy` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.axpy_l2` (ascendc::AxpyL2Op) _Call `AscendC::Axpy` function_ Syntax: ``` operation ::= `ascendc.axpy_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Axpy` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.bilinearInterpolation_l0` (ascendc::BilinearInterpolationL0Op) _Call `AscendC::BilinearInterpolation` function_ Syntax: ``` operation ::= `ascendc.bilinearInterpolation_l0` operands attr-dict `:` qualified(type(operands)) ``` AscendC::BilinearInterpolation is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src0` | Local tensor from UB | `src0Offset` | Local tensor from UB | `src1` | Local tensor from UB | `mask` | any type | `hRepeat` | any type | `repeatMode` | any type | `dstBlkStride` | any type | `vROffset` | any type | `vRepeat` | any type | `sharedTmpBuffer` | Local tensor from UB ### `ascendc.bilinearInterpolation_l1` (ascendc::BilinearInterpolationL1Op) _Call `AscendC::BilinearInterpolation` function_ Syntax: ``` operation ::= `ascendc.bilinearInterpolation_l1` operands attr-dict `:` qualified(type(operands)) ``` AscendC::BilinearInterpolation is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src0` | Local tensor from UB | `src0Offset` | Local tensor from UB | `src1` | Local tensor from UB | `mask` | variadic of 64-bit unsigned integer | `hRepeat` | any type | `repeatMode` | any type | `dstBlkStride` | any type | `vROffset` | any type | `vRepeat` | any type | `sharedTmpBuffer` | Local tensor from UB ### `ascendc.block_reduce_max_l0` (ascendc::BlockReduceMaxL0Op) _Call `AscendC::BlockReduceMax` function_ Syntax: ``` operation ::= `ascendc.block_reduce_max_l0` operands attr-dict `:` qualified(type(operands)) ``` Find maximum value in each block (single mask version) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `mask` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.block_reduce_max_l1` (ascendc::BlockReduceMaxL1Op) _Call `AscendC::BlockReduceMax` function_ Syntax: ``` operation ::= `ascendc.block_reduce_max_l1` operands attr-dict `:` qualified(type(operands)) ``` Find maximum value in each block (mask array version) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `mask` | variadic of 64-bit unsigned integer | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.block_reduce_min_l0` (ascendc::BlockReduceMinL0Op) _Call `AscendC::BlockReduceMin` function_ Syntax: ``` operation ::= `ascendc.block_reduce_min_l0` operands attr-dict `:` qualified(type(operands)) ``` Find minimum value in each block (single mask version) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `mask` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.block_reduce_min_l1` (ascendc::BlockReduceMinL1Op) _Call `AscendC::BlockReduceMin` function_ Syntax: ``` operation ::= `ascendc.block_reduce_min_l1` operands attr-dict `:` qualified(type(operands)) ``` Find minimum value in each block (mask array version) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `mask` | variadic of 64-bit unsigned integer | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.block_reduce_sum_l0` (ascendc::BlockReduceSumL0Op) _Call `AscendC::BlockReduceSum` function_ Syntax: ``` operation ::= `ascendc.block_reduce_sum_l0` operands attr-dict `:` qualified(type(operands)) ``` Sum all elements in each block (single mask version) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `mask` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.block_reduce_sum_l1` (ascendc::BlockReduceSumL1Op) _Call `AscendC::BlockReduceSum` function_ Syntax: ``` operation ::= `ascendc.block_reduce_sum_l1` operands attr-dict `:` qualified(type(operands)) ``` Sum all elements in each block (mask array version) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `mask` | variadic of 64-bit unsigned integer | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.brcb_l0` (ascendc::BrcbL0Op) _Call `AscendC::Brcb` function_ Syntax: ``` operation ::= `ascendc.brcb_l0` operands attr-dict `:` qualified(type(operands)) ``` Brcb elements from source tensor (L0 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src0` | Local tensor from UB | `repeatTimes` | any type | `repeatParams` | ### `ascendc.broadcast` (ascendc::BroadcastOp) _Call `AscendC::Broadcast` function_ Syntax: ``` operation ::= `ascendc.broadcast` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `dstShape` | variadic of 32-bit signless integer | `srcShape` | variadic of 32-bit signless integer ### `ascendc.cast_deq_l0` (ascendc::CastDeqL0Op) _Call `AscendC::CastDeq` function_ Syntax: ``` operation ::= `ascendc.cast_deq_l0` operands attr-dict `:` qualified(type(operands)) ``` Quantize and convert the input tensor to the specified data type (L0 API) Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
isVecDeq::mlir::UnitAttrunit attribute
halfBlock::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.cast_deq_l1` (ascendc::CastDeqL1Op) _Call `AscendC::CastDeq` function_ Syntax: ``` operation ::= `ascendc.cast_deq_l1` operands attr-dict `:` qualified(type(operands)) ``` Quantize and convert the input tensor to the specified data type (L1 API) Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
isVecDeq::mlir::UnitAttrunit attribute
halfBlock::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.cast_deq_l2` (ascendc::CastDeqL2Op) _Call `AscendC::CastDeq` function_ Syntax: ``` operation ::= `ascendc.cast_deq_l2` operands attr-dict `:` qualified(type(operands)) ``` Quantize and convert the input tensor to the specified data type (L2 API) Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isVecDeq::mlir::UnitAttrunit attribute
halfBlock::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.cast_l0` (ascendc::CastL0Op) _Call `AscendC::Cast` function_ Syntax: ``` operation ::= `ascendc.cast_l0` operands attr-dict `:` qualified(type(operands)) ``` Convert the input tensor to the specified data type (L0 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
roundMode::mlir::ascendc::RoundModeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6{{% markdown %}}Represents AscendC::RoundMode{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.cast_l1` (ascendc::CastL1Op) _Call `AscendC::Cast` function_ Syntax: ``` operation ::= `ascendc.cast_l1` operands attr-dict `:` qualified(type(operands)) ``` Convert the input tensor to the specified data type (L1 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
roundMode::mlir::ascendc::RoundModeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6{{% markdown %}}Represents AscendC::RoundMode{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.cast_l2` (ascendc::CastL2Op) _Call `AscendC::Cast` function_ Syntax: ``` operation ::= `ascendc.cast_l2` operands attr-dict `:` qualified(type(operands)) ``` Convert the input tensor to the specified data type (L2 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
roundMode::mlir::ascendc::RoundModeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6{{% markdown %}}Represents AscendC::RoundMode{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `calCount` | any type ### `ascendc.ceil` (ascendc::CeilOp) _Call `AscendC::Ceil` function_ Syntax: ``` operation ::= `ascendc.ceil` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Ceil` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.check_local_memory_ia` (ascendc::CheckLocalMemoryIAOp) _Call `AscendC::CheckLocalMemoryIA` function_ Syntax: ``` operation ::= `ascendc.check_local_memory_ia` operands attr-dict `:` qualified(type(operands)) ``` Get the values of atomic operation enable bit and atomic operation type Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `param` | ### `ascendc.clamp_max` (ascendc::ClampMaxOp) _Call `AscendC::ClampMax` function_ Syntax: ``` operation ::= `ascendc.clamp_max` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::ClampMax` is a math library operation. Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `scalar` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.clamp_min` (ascendc::ClampMinOp) _Call `AscendC::ClampMin` function_ Syntax: ``` operation ::= `ascendc.clamp_min` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::ClampMin` is a math library operation. Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `scalar` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.compare_l0` (ascendc::CompareL0Op) _Call `AscendC::Compare` function_ Syntax: ``` operation ::= `ascendc.compare_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Compare` is a vector binary operation (L0 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
cmpMode::mlir::ascendc::CMPMODEAttr
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5{{% markdown %}}Enum cases: * LT (`LT`) * GT (`GT`) * EQ (`EQ`) * LE (`LE`) * GE (`GE`) * NE (`NE`){{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.compare_l1` (ascendc::CompareL1Op) _Call `AscendC::Compare` function_ Syntax: ``` operation ::= `ascendc.compare_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Compare` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
cmpMode::mlir::ascendc::CMPMODEAttr
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5{{% markdown %}}Enum cases: * LT (`LT`) * GT (`GT`) * EQ (`EQ`) * LE (`LE`) * GE (`GE`) * NE (`NE`){{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.compare_l2` (ascendc::CompareL2Op) _Call `AscendC::Compare` function_ Syntax: ``` operation ::= `ascendc.compare_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Compare` is a vector binary operation (L2 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
cmpMode::mlir::ascendc::CMPMODEAttr
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5{{% markdown %}}Enum cases: * LT (`LT`) * GT (`GT`) * EQ (`EQ`) * LE (`LE`) * GE (`GE`) * NE (`NE`){{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.compare_r_l0` (ascendc::CompareRL0Op) _Call `AscendC::Compare` function_ Syntax: ``` operation ::= `ascendc.compare_r_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Compare` is a vector binary operation (store result in the register) (L0 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
cmpMode::mlir::ascendc::CMPMODEAttr
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5{{% markdown %}}Enum cases: * LT (`LT`) * GT (`GT`) * EQ (`EQ`) * LE (`LE`) * GE (`GE`) * NE (`NE`){{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `src0` | any type | `src1` | any type | `mask` | any type | `repeatParams` | ### `ascendc.compare_r_l1` (ascendc::CompareRL1Op) _Call `AscendC::Compare` function_ Syntax: ``` operation ::= `ascendc.compare_r_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Compare` is a vector binary operation (store result in the register) (L1 API). Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
cmpMode::mlir::ascendc::CMPMODEAttr
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5{{% markdown %}}Enum cases: * LT (`LT`) * GT (`GT`) * EQ (`EQ`) * LE (`LE`) * GE (`GE`) * NE (`NE`){{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatParams` | ### `ascendc.compare_scalar_l0` (ascendc::CompareScalarL0Op) _Call `AscendC::CompareScalar` function_ Syntax: ``` operation ::= `ascendc.compare_scalar_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::CompareScalar` is a vector-scalar binary operation (L0 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
cmpMode::mlir::ascendc::CMPMODEAttr
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5{{% markdown %}}Enum cases: * LT (`LT`) * GT (`GT`) * EQ (`EQ`) * LE (`LE`) * GE (`GE`) * NE (`NE`){{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1Scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.compare_scalar_l1` (ascendc::CompareScalarL1Op) _Call `AscendC::CompareScalar` function_ Syntax: ``` operation ::= `ascendc.compare_scalar_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::CompareScalar` is a vector-scalar binary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
cmpMode::mlir::ascendc::CMPMODEAttr
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5{{% markdown %}}Enum cases: * LT (`LT`) * GT (`GT`) * EQ (`EQ`) * LE (`LE`) * GE (`GE`) * NE (`NE`){{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1Scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.compare_scalar_l2` (ascendc::CompareScalarL2Op) _Call `AscendC::CompareScalar` function_ Syntax: ``` operation ::= `ascendc.compare_scalar_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::CompareScalar` is a vector-scalar binary operation (L2 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
cmpMode::mlir::ascendc::CMPMODEAttr
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5{{% markdown %}}Enum cases: * LT (`LT`) * GT (`GT`) * EQ (`EQ`) * LE (`LE`) * GE (`GE`) * NE (`NE`){{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1Scalar` | any type | `calCount` | any type ### `ascendc.concat` (ascendc::ConcatOp) _Call `AscendC::Concat` function_ Syntax: ``` operation ::= `ascendc.concat` operands attr-dict `:` qualified(type(operands)) ``` Preprocess source tensor data and merge it into the target tensor concat before sort operation. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `tmp` | Local tensor from UB | `repeatTime` | any type ### `ascendc.construct` (ascendc::ConstructOp) _Construct Ascend C object (struct or enum)_ Syntax: ``` operation ::= `ascendc.construct` type($result) `(` ($operands^)? `)` ($types^)? (`constexpr` $isConstexpr^)? (`static` $isStatic^)? attr-dict (`:` type($operands)^)? ``` Traits: `AlwaysSpeculatableImplTrait` Interfaces: `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Attributes:
AttributeMLIR TypeDescription
types::mlir::ArrayAttrtype array attribute
isConstexpr::mlir::UnitAttrunit attribute
isStatic::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `operands` | variadic of any type #### Results: | Result | Description | | :----: | ----------- | | `result` | any type ### `ascendc.copy_l0` (ascendc::CopyL0Op) _Copy with bitwise mask_ Syntax: ``` operation ::= `ascendc.copy_l0` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | variadic of integer | `repeatTime` | integer | `repeatParams` | | `isSetMask` | integer ### `ascendc.copy_l1` (ascendc::CopyL1Op) _Copy with continuous mask_ Syntax: ``` operation ::= `ascendc.copy_l1` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | integer | `repeatTime` | integer | `repeatParams` | | `isSetMask` | integer ### `ascendc.cos` (ascendc::CosOp) _Call `AscendC::Cos` function_ Syntax: ``` operation ::= `ascendc.cos` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Cos` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.cosh` (ascendc::CoshOp) _Call `AscendC::Cosh` function_ Syntax: ``` operation ::= `ascendc.cosh` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Cosh` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.count_bits_cnt_same_as_sign_bit` (ascendc::CountBitsCntSameAsSignBitOp) _Call `AscendC::CountBitsCntSameAsSignBit` function_ Syntax: ``` operation ::= `ascendc.count_bits_cnt_same_as_sign_bit` operands attr-dict `:` qualified(type(operands)) `->` type($count) ``` Count the number of consecutive bits from the highest value bit that are the same as the sign bit in an int64_t value. Returns -1 if input is -1 (all 1s) or 0 (all 0s). Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `valueIn` | 64-bit signless integer #### Results: | Result | Description | | :----: | ----------- | | `count` | 64-bit signless integer ### `ascendc.cross_core_set_flag` (ascendc::CrossCoreSetFlagOp) _Call `AscendC::CrossCoreSetFlag` function_ Syntax: ``` operation ::= `ascendc.cross_core_set_flag` $flagId `,` $modeId `,` $pipe attr-dict `:` type($flagId) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
modeId::mlir::IntegerAttr8-bit unsigned integer attribute
pipe::mlir::ascendc::PipeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10{{% markdown %}}Represents pipe_t{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `flagId` | any type ### `ascendc.cross_core_wait_flag` (ascendc::CrossCoreWaitFlagOp) _Call `AscendC::CrossCoreWaitFlag` function_ Syntax: ``` operation ::= `ascendc.cross_core_wait_flag` $flagId `,` $modeId `,` $pipe attr-dict `:` type($flagId) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
modeId::mlir::IntegerAttr8-bit unsigned integer attribute
pipe::mlir::ascendc::PipeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10{{% markdown %}}Represents pipe_t{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `flagId` | any type ### `ascendc.cumsum` (ascendc::CumSumOp) _Call `AscendC::CumSum` function_ Syntax: ``` operation ::= `ascendc.cumsum` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::CumSum` is a math library operation. Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `lastRow` | any type | `src` | any type | `sharedTmpBuffer` | any type | `lastAxis` | any type | `reuseSource` | any type | `outputLastRow` | any type ### `ascendc.data_cache_clean_invalid_global` (ascendc::DataCacheCleanAndInvalidGlobalOp) _Call `AscendC::DataCacheCleanAndInvalid` function_ Syntax: ``` operation ::= `ascendc.data_cache_clean_invalid_global` operands attr-dict `:` qualified(type(operands)) ``` Clean and invalidate data cache for GlobalTensor (with DcciDst). Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
entireType::mlir::ascendc::CacheLineAttr
allowed 32-bit signless integer cases: 0, 1{{% markdown %}}Represents AscendC::CacheLine{{% /markdown %}}
dcciDst::mlir::ascendc::DcciDstAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3{{% markdown %}}Represents AscendC::DcciDst{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Global tensor from GM (OUT) ### `ascendc.data_cache_clean_invalid_global_nodccidst` (ascendc::DataCacheCleanAndInvalidGlobalNoDcciDstOp) _Call `AscendC::DataCacheCleanAndInvalid` function_ Syntax: ``` operation ::= `ascendc.data_cache_clean_invalid_global_nodccidst` operands attr-dict `:` qualified(type(operands)) ``` Clean and invalidate data cache for GlobalTensor. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
entireType::mlir::ascendc::CacheLineAttr
allowed 32-bit signless integer cases: 0, 1{{% markdown %}}Represents AscendC::CacheLine{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Global tensor from GM (OUT) ### `ascendc.data_cache_preload` (ascendc::DataCachePreloadOp) _Call `AscendC::DataCachePreload` function_ Syntax: ``` operation ::= `ascendc.data_cache_preload` operands attr-dict `:` qualified(type(operands)) ``` Preload data from a specific GM address into the data cache. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `src` | Global tensor from GM (OUT) | `cacheOffset` | integer ### `ascendc.data_copy_co12dst` (ascendc::DataCopyCO12DstOp) _Call `AscendC::DataCopy` function_ Syntax: ``` operation ::= `ascendc.data_copy_co12dst` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (with DataCopyCO12DstParams) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `intriParams` | ### `ascendc.data_copy_enhanced` (ascendc::DataCopyEnhancedOp) _Call `AscendC::DataCopy` function_ Syntax: ``` operation ::= `ascendc.data_copy_enhanced` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (with DataCopyEnhancedParams) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `intriParams` | | `enhancedParams` | ### `ascendc.data_copy_l0` (ascendc::DataCopyL0Op) _Call `AscendC::DataCopy` function_ Syntax: ``` operation ::= `ascendc.data_copy_l0` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (L0 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `repeatParams` | ### `ascendc.data_copy_l2` (ascendc::DataCopyL2Op) _Call `AscendC::DataCopy` function_ Syntax: ``` operation ::= `ascendc.data_copy_l2` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (L2 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `calCount` | any type ### `ascendc.data_copy_nd2nz` (ascendc::DataCopyNd2NzOp) _Call `AscendC::DataCopy` function_ Syntax: ``` operation ::= `ascendc.data_copy_nd2nz` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (with Nd2NzParams) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `intriParams` | ### `ascendc.data_copy_nz2nd` (ascendc::DataCopyNz2NdOp) _Call `AscendC::DataCopy` function_ Syntax: ``` operation ::= `ascendc.data_copy_nz2nd` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (with Nz2NdParamsFull) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `intriParams` | ### `ascendc.data_copy_pad_ext_params` (ascendc::DataCopyPadExtParamsOp) _Instantiate DataCopyPadExtParams_ Syntax: ``` operation ::= `ascendc.data_copy_pad_ext_params` attr-dict `:` qualified(type($params)) ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `params` | ### `ascendc.data_copy_pad_l0` (ascendc::DataCopyPadL0Op) _Call `AscendC::DataCopyPad` function_ Syntax: ``` operation ::= `ascendc.data_copy_pad_l0` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (L0 API with DataCopyParams) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `dataCopyParams` | | `padParams` | ### `ascendc.data_copy_pad_l0_ext` (ascendc::DataCopyPadExtL0Op) _Call `AscendC::DataCopyPad` function_ Syntax: ``` operation ::= `ascendc.data_copy_pad_l0_ext` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (L0 API with DataCopyExtParams) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `dataCopyParams` | | `padParams` | ### `ascendc.data_copy_pad_l2` (ascendc::DataCopyPadL2Op) _Call `AscendC::DataCopyPad` function_ Syntax: ``` operation ::= `ascendc.data_copy_pad_l2` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (L2 API with DataCopyParams) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `dataCopyParams` | ### `ascendc.data_copy_pad_l2_ext` (ascendc::DataCopyPadExtL2Op) _Call `AscendC::DataCopyPad` function_ Syntax: ``` operation ::= `ascendc.data_copy_pad_l2_ext` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (L2 API with DataCopyExtParams) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `dataCopyParams` | ### `ascendc.data_copy_pad_nd2nz` (ascendc::DataCopyPadNd2NzOp) _Call `AscendC::DataCopyPad` function_ Syntax: ``` operation ::= `ascendc.data_copy_pad_nd2nz` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (Nd2Nz with DataCopyParams) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `dataCopyParams` | | `nd2nzParams` | ### `ascendc.data_copy_pad_nd2nz_ext` (ascendc::DataCopyPadExtNd2NzOp) _Call `AscendC::DataCopyPad` function_ Syntax: ``` operation ::= `ascendc.data_copy_pad_nd2nz_ext` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (Nd2Nz with DataCopyExtParams) Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `dataCopyParams` | | `nd2nzParams` | ### `ascendc.data_copy_slice` (ascendc::DataCopySliceOp) _Call `AscendC::DataCopy` function_ Syntax: ``` operation ::= `ascendc.data_copy_slice` operands attr-dict `:` qualified(type(operands)) ``` Perform copying between tensors (with SliceInfo) Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `dstSliceInfo` | variadic of | `srcSliceInfo` | variadic of | `dimValue` | 32-bit unsigned integer ### `ascendc.data_sync_barrier` (ascendc::DataSyncBarrierOp) _Call `AscendC::DataSyncBarrier` function_ Syntax: ``` operation ::= `ascendc.data_sync_barrier` operands attr-dict `:` qualified(type(operands)) ``` Synchronize data accesses by waiting for specified memory operations, controlled by the MemDsbT parameter. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
memDsbType::mlir::ascendc::MemDsbTAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3{{% markdown %}}Represents AscendC::MemDsbT, indicating memory positions to wait for in DataSyncBarrier{{% /markdown %}}
### `ascendc.digamma` (ascendc::DigammaOp) _Call `AscendC::Digamma` function_ Syntax: ``` operation ::= `ascendc.digamma` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Digamma` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.div_l0` (ascendc::DivL0Op) _Call `AscendC::Div` function_ Syntax: ``` operation ::= `ascendc.div_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Div` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.div_l1` (ascendc::DivL1Op) _Call `AscendC::Div` function_ Syntax: ``` operation ::= `ascendc.div_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Div` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.div_l2` (ascendc::DivL2Op) _Call `AscendC::Div` function_ Syntax: ``` operation ::= `ascendc.div_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Div` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.div_l3` (ascendc::DivL3Op) _Call `LocalTensor::operator/` method_ Syntax: ``` operation ::= `ascendc.div_l3` operands attr-dict `:` qualified(type(operands)) ``` `LocalTensor::operator/` performs a vector binary operation (L3 API). Interfaces: `APIOpInterface`, `BinaryL3OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type ### `ascendc.divs_l0` (ascendc::DivsL0Op) _Call `AscendC::Divs` function_ Syntax: ``` operation ::= `ascendc.divs_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Divs` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.divs_l1` (ascendc::DivsL1Op) _Call `AscendC::Divs` function_ Syntax: ``` operation ::= `ascendc.divs_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Divs` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.divs_l2` (ascendc::DivsL2Op) _Call `AscendC::Divs` function_ Syntax: ``` operation ::= `ascendc.divs_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Divs` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.dump_acc_chk_point` (ascendc::DumpAccChkPointOp) _Call `AscendC::DumpAccChkPoint` function_ Syntax: ``` operation ::= `ascendc.dump_acc_chk_point` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | base tensor type | `index` | any type | `countOff` | any type | `dumpSize` | any type ### `ascendc.dump_tensor` (ascendc::DumpTensorOp) _Call `AscendC::DumpTensor` function_ Syntax: ``` operation ::= `ascendc.dump_tensor` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | base tensor type | `desc` | any type | `dumpSize` | any type | `shapeInfo` | ### `ascendc.duplicate_l0` (ascendc::DuplicateL0Op) _Call `AscendC::Duplicate` function_ Syntax: ``` operation ::= `ascendc.duplicate_l0` operands attr-dict `:` qualified(type(operands)) ``` Duplicate elements from source tensor (L0 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `dstBlockStride` | any type | `dstRepeatStride` | any type ### `ascendc.duplicate_l1` (ascendc::DuplicateL1Op) _Call `AscendC::Duplicate` function_ Syntax: ``` operation ::= `ascendc.duplicate_l1` operands attr-dict `:` qualified(type(operands)) ``` Duplicate elements from source tensor (L1 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `dstBlockStride` | any type | `dstRepeatStride` | any type ### `ascendc.duplicate_l2` (ascendc::DuplicateL2Op) _Call `AscendC::Duplicate` function_ Syntax: ``` operation ::= `ascendc.duplicate_l2` operands attr-dict `:` qualified(type(operands)) ``` Duplicate elements from source tensor (L2 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `scalar` | any type | `calCount` | any type ### `ascendc.erf` (ascendc::ErfOp) _Call `AscendC::Erf` function_ Syntax: ``` operation ::= `ascendc.erf` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Erf` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.erfc` (ascendc::ErfcOp) _Call `AscendC::Erfc` function_ Syntax: ``` operation ::= `ascendc.erfc` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Erfc` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.exp` (ascendc::ExpOp) _Call `AscendC::Exp` function_ Syntax: ``` operation ::= `ascendc.exp` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Exp` is a math library operation. Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `calCount` | any type | `taylorExpandLevel` | any type | `sharedTmpBuffer` | any type | `isReuseSource` | any type ### `ascendc.exp_l0` (ascendc::ExpL0Op) _Call `AscendC::Exp` function_ Syntax: ``` operation ::= `ascendc.exp_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Exp` is a vector unary operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL0OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.exp_l1` (ascendc::ExpL1Op) _Call `AscendC::Exp` function_ Syntax: ``` operation ::= `ascendc.exp_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Exp` is a vector unary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.exp_l2` (ascendc::ExpL2Op) _Call `AscendC::Exp` function_ Syntax: ``` operation ::= `ascendc.exp_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Exp` is a vector unary operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL2OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.extract` (ascendc::ExtractOp) _Call `AscendC::Extract` function_ Syntax: ``` operation ::= `ascendc.extract` operands attr-dict `:` qualified(type(operands)) ``` Extract sorted values and indices from source tensor after sort operation. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dstValue` | Local tensor from UB | `dstIndex` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type ### `ascendc.ffts_cross_core_sync` (ascendc::FftsCrossCoreSyncOp) _Call `AscendC::FftsCrossCoreSync` function_ Syntax: ``` operation ::= `ascendc.ffts_cross_core_sync` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pipe::mlir::ascendc::PipeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10{{% markdown %}}Represents pipe_t{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `config` | any type ### `ascendc.fixpipe` (ascendc::FixpipeOp) _Call `AscendC::Fixpipe` function without cbufWorkspace_ Syntax: ``` operation ::= `ascendc.fixpipe` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface`, `OpWithSrcInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Global tensor from GM (OUT) | `src` | Local tensor from UB | `intriParams` | | `fixpipeConfig` | ### `ascendc.fixpipe_with_workspace` (ascendc::FixpipeWithWorkspaceOp) _Call `AscendC::Fixpipe` function with cbufWorkspace_ Syntax: ``` operation ::= `ascendc.fixpipe_with_workspace` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Global tensor from GM (OUT) | `src` | Local tensor from UB | `cbufWorkspace` | Local tensor from UB | `intriParams` | | `fixpipeConfig` | ### `ascendc.floor` (ascendc::FloorOp) _Call `AscendC::Floor` function_ Syntax: ``` operation ::= `ascendc.floor` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Floor` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.frac` (ascendc::FracOp) _Call `AscendC::Frac` function_ Syntax: ``` operation ::= `ascendc.frac` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Frac` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.fused_abs_sub_l2` (ascendc::FusedAbsSubL2Op) _Call `AscendC::FusedAbsSub` function_ Syntax: ``` operation ::= `ascendc.fused_abs_sub_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::FusedAbsSub` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.fused_exp_sub_l2` (ascendc::FusedExpSubL2Op) _Call `AscendC::FusedExpSub` function_ Syntax: ``` operation ::= `ascendc.fused_exp_sub_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::FusedExpSub` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.fused_mul_add_l0` (ascendc::FusedMulAddL0Op) _Call `AscendC::FusedMulAdd` function_ Syntax: ``` operation ::= `ascendc.fused_mul_add_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::FusedMulAdd` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.fused_mul_add_l1` (ascendc::FusedMulAddL1Op) _Call `AscendC::FusedMulAdd` function_ Syntax: ``` operation ::= `ascendc.fused_mul_add_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::FusedMulAdd` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.fused_mul_add_l2` (ascendc::FusedMulAddL2Op) _Call `AscendC::FusedMulAdd` function_ Syntax: ``` operation ::= `ascendc.fused_mul_add_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::FusedMulAdd` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.fused_mul_add_relu_l0` (ascendc::FusedMulAddReluL0Op) _Call `AscendC::FusedMulAddRelu` function_ Syntax: ``` operation ::= `ascendc.fused_mul_add_relu_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::FusedMulAddRelu` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.fused_mul_add_relu_l1` (ascendc::FusedMulAddReluL1Op) _Call `AscendC::FusedMulAddRelu` function_ Syntax: ``` operation ::= `ascendc.fused_mul_add_relu_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::FusedMulAddRelu` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.fused_mul_add_relu_l2` (ascendc::FusedMulAddReluL2Op) _Call `AscendC::FusedMulAddRelu` function_ Syntax: ``` operation ::= `ascendc.fused_mul_add_relu_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::FusedMulAddRelu` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.gather_l0` (ascendc::GatherL0Op) _Call `AscendC::Gather` function_ Syntax: ``` operation ::= `ascendc.gather_l0` operands attr-dict `:` qualified(type(operands)) ``` Gather elements from source tensor (L0 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `srcOffset` | Local tensor from UB | `srcBaseAddr` | any type | `mask` | any type | `repeatTimes` | any type | `dstRepStride` | any type ### `ascendc.gather_l1` (ascendc::GatherL1Op) _Call `AscendC::Gather` function_ Syntax: ``` operation ::= `ascendc.gather_l1` operands attr-dict `:` qualified(type(operands)) ``` Gather elements from source tensor (L1 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `dstOffset` | Local tensor from UB | `dstBase` | any type | `mask` | variadic of any type | `repeatTimes` | any type | `srcRepStride` | any type ### `ascendc.gather_l2` (ascendc::GatherL2Op) _Call `AscendC::Gather` function_ Syntax: ``` operation ::= `ascendc.gather_l2` operands attr-dict `:` qualified(type(operands)) ``` Gather elements from source tensor (L2 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `srcOffset` | Local tensor from UB | `srcBaseAddr` | any type | `count` | any type ### `ascendc.gather_mask` (ascendc::GatherMaskOp) _Call `AscendC::GatherMask` function_ Syntax: ``` operation ::= `ascendc.gather_mask` $dst `,` $src0 `,` $src1Pattern `,` $reduceMode `,` $mask `,` $params `,` $gatherMaskMode attr-dict `:` qualified(type($dst)) `,` qualified(type($src0)) `,` qualified(type($src1Pattern)) `,` type($reduceMode) `,` type($mask) `,` type($params) `->` type($rsvdCnt) ``` Gather elements from source tensor using mask pattern Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
gatherMaskMode::mlir::ascendc::GatherMaskModeAttr
allowed 32-bit signless integer cases: 0{{% markdown %}}Represents AscendC::GatherMaskMode{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src0` | Local tensor from UB | `src1Pattern` | any type | `reduceMode` | any type | `mask` | any type | `params` | #### Results: | Result | Description | | :----: | ----------- | | `rsvdCnt` | any type ### `ascendc.gatherb_l0` (ascendc::GatherbL0Op) _Call `AscendC::Gatherb` function_ Syntax: ``` operation ::= `ascendc.gatherb_l0` operands attr-dict `:` qualified(type(operands)) ``` Gatherb elements from source tensor (L0 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src0` | Local tensor from UB | `offset` | Local tensor from UB | `repeatTimes` | any type | `repeatParams` | ### `ascendc.get_arch_version` (ascendc::GetArchVersionOp) _Call `AscendC::GetArchVersion` function_ Syntax: ``` operation ::= `ascendc.get_arch_version` operands attr-dict `:` qualified(type(operands)) ``` Obtain the architecture version Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `coreVersion` | any type ### `ascendc.get_block_idx` (ascendc::GetBlockIdxOp) _Call `AscendC::GetBlockIdx` function_ Syntax: ``` operation ::= `ascendc.get_block_idx` attr-dict `:` type($value) ``` Obtain an index of the current block Traits: `AlwaysSpeculatableImplTrait` Interfaces: `APIOpInterface`, `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Results: | Result | Description | | :----: | ----------- | | `value` | signless integer or index ### `ascendc.get_block_num` (ascendc::GetBlockNumOp) _Call `AscendC::GetBlockNum` function_ Syntax: ``` operation ::= `ascendc.get_block_num` attr-dict `:` type($value) ``` Obtain the number of active blocks Traits: `AlwaysSpeculatableImplTrait` Interfaces: `APIOpInterface`, `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Results: | Result | Description | | :----: | ----------- | | `value` | signless integer or index ### `ascendc.get_buf` (ascendc::GetBufOp) _Call `AscendC::get_buf` function_ Syntax: ``` operation ::= `ascendc.get_buf` $pipe `,` $bufId attr-dict ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pipe::mlir::ascendc::PipeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10{{% markdown %}}Represents pipe_t{{% /markdown %}}
bufId::mlir::IntegerAttr32-bit signless integer attribute
mode::mlir::UnitAttrunit attribute
### `ascendc.get_cmp_mask` (ascendc::GetCmpMaskOp) _Call `AscendC::GetCmpMask` function_ Syntax: ``` operation ::= `ascendc.get_cmp_mask` operands attr-dict `:` qualified(type(operands)) ``` get Compare(store results in register) results Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB ### `ascendc.get_data_block_size_in_bytes` (ascendc::GetDataBlockSizeInBytesOp) _Call `AscendC::GetDataBlockSizeInBytes` function_ Syntax: ``` operation ::= `ascendc.get_data_block_size_in_bytes` attr-dict `:` type($value) ``` Obtain the size of a datablock in bytes for the current chip version Traits: `AscFunc` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `value` | signless integer or index ### `ascendc.get_gather_mask_remain_count` (ascendc::GetGatherMaskRemainCountOp) _Call `AscendC::GetGatherMaskRemainCount` function_ Syntax: ``` operation ::= `ascendc.get_gather_mask_remain_count` attr-dict `:` type($result) ``` Get remaining count from last GatherMask operation Traits: `AscFunc` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `result` | any type ### `ascendc.get_hccl_context` (ascendc::GetHcclContextOp) _Call `AscendC::GetHcclContext` function_ Syntax: ``` operation ::= `ascendc.get_hccl_context` $index attr-dict `:` type($index) `,` type($context) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `index` | any type #### Results: | Result | Description | | :----: | ----------- | | `context` | any type ### `ascendc.get_icache_preload_status` (ascendc::GetICachePreloadStatusOp) _Call `AscendC::GetICachePreloadStatus` function_ Syntax: ``` operation ::= `ascendc.get_icache_preload_status` operands attr-dict `:` qualified(type(operands)) ``` Get the status of ICache preload: 0 indicates idle, 1 indicates busy. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `status` | 64-bit signless integer ### `ascendc.get_matmul_api_tiling` (ascendc::MatmulGetMatmulApiTilingOp) _Call `AscendC::GetMatmulApiTiling` function_ Syntax: ``` operation ::= `ascendc.get_matmul_api_tiling` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
matmulType::mlir::TypeAttrany type attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `mmCFG` | | `l1Size` | any type #### Results: | Result | Description | | :----: | ----------- | | `result` | ### `ascendc.get_mrg_sort_result` (ascendc::GetMrgSortResultOp) _Call `AscendC::GetMrgSortResult` function_ Syntax: ``` operation ::= `ascendc.get_mrg_sort_result` attr-dict `:` type($mrgSortList1) `,` type($mrgSortList2) `,` type($mrgSortList3) `,` type($mrgSortList4) ``` Get merge sort result Interfaces: `APIOpInterface`, `VectorOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `mrgSortList1` | any type | `mrgSortList2` | any type | `mrgSortList3` | any type | `mrgSortList4` | any type ### `ascendc.get_program_counter` (ascendc::GetProgramCounterOp) _Call `AscendC::GetProgramCounter` function_ Syntax: ``` operation ::= `ascendc.get_program_counter` attr-dict `:` type($value) ``` Get the program counter pointer Traits: `AscFunc` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `value` | signless integer or index ### `ascendc.get_shape_size` (ascendc::GetShapeSizeOp) _Call `AscendC::GetShapeSize` function_ Syntax: ``` operation ::= `ascendc.get_shape_size` $shapeInfo attr-dict `:` qualified(type($shapeInfo)) `->` type($result) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `shapeInfo` | #### Results: | Result | Description | | :----: | ----------- | | `result` | signless integer or index ### `ascendc.get_sort_len` (ascendc::GetSortLenOp) _Call `AscendC::GetSortLen` function_ Syntax: ``` operation ::= `ascendc.get_sort_len` operands attr-dict `:` qualified(type(operands)) ``` Get sort length in the sorted structure Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `elemCount` | 32-bit unsigned integer #### Results: | Result | Description | | :----: | ----------- | | `result` | 32-bit unsigned integer ### `ascendc.get_sort_offset` (ascendc::GetSortOffsetOp) _Call `AscendC::GetSortOffset` function_ Syntax: ``` operation ::= `ascendc.get_sort_offset` operands attr-dict `:` qualified(type(operands)) ``` Get sort offset in the sorted structure Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `elemOffset` | 32-bit unsigned integer #### Results: | Result | Description | | :----: | ----------- | | `result` | 32-bit unsigned integer ### `ascendc.get_store_atomic_config` (ascendc::GetStoreAtomicConfigOp) _Get atomic operation enable bit and atomic operation type_ Syntax: ``` operation ::= `ascendc.get_store_atomic_config` attr-dict `:` type($atomicType) `,` type($atomicOp) ``` Get the values of atomic operation enable bit and atomic operation type Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `atomicType` | any type | `atomicOp` | any type ### `ascendc.get_sub_block_idx` (ascendc::GetSubBlockIdxOp) _Call `AscendC::GetSubBlockIdx` function_ Syntax: ``` operation ::= `ascendc.get_sub_block_idx` attr-dict `:` type($value) ``` Get the vector core ID in AI Core Traits: `AscFunc` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `value` | 64-bit signless integer ### `ascendc.get_sub_block_num` (ascendc::GetSubBlockNumOp) _Call `AscendC::GetSubBlockNum` function_ Syntax: ``` operation ::= `ascendc.get_sub_block_num` attr-dict `:` type($value) ``` Get the num of vector core in aicore Traits: `AscFunc` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `value` | 64-bit unsigned integer ### `ascendc.get_sys_workspace_ptr` (ascendc::GetSysWorkspacePtrOp) _Call `AscendC::GetSysWorkSpacePtr` function_ Syntax: ``` operation ::= `ascendc.get_sys_workspace_ptr` attr-dict `:` type($value) ``` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.get_system_cycle` (ascendc::GetSystemCycleOp) _Call `AscendC::GetSystemCycle` function_ Syntax: ``` operation ::= `ascendc.get_system_cycle` attr-dict `:` type($value) ``` Get the current system cycle count Traits: `AscFunc` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `value` | signless integer or index ### `ascendc.get_task_ratio` (ascendc::GetTaskRatioOp) _Call `AscendC::GetTaskRatio` function_ Syntax: ``` operation ::= `ascendc.get_task_ratio` attr-dict `:` type($value) ``` Get the ratio of task cores to AI Core, return 1 in coupled mode Traits: `AscFunc` Interfaces: `APIOpInterface` #### Results: | Result | Description | | :----: | ----------- | | `value` | 64-bit signless integer ### `ascendc.global_tensor` (ascendc::GlobalTensorOp) _Instantiate global tensor_ Syntax: ``` operation ::= `ascendc.global_tensor` attr-dict `:` qualified(type($tensor)) ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `tensor` | Global tensor from GM (OUT) ### `ascendc.global_tensor.bracket` (ascendc::GlobalTensorBracketOp) _Call `AscendC::GlobalTensor::operator()` method_ Syntax: ``` operation ::= `ascendc.global_tensor.bracket` $tensor `(` $index `)` attr-dict `:` qualified(type($tensor)) `,` type($index) `,` qualified(type($result)) ``` Traits: `AlwaysSpeculatableImplTrait` Interfaces: `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) | `index` | signless integer or index #### Results: | Result | Description | | :----: | ----------- | | `result` | Global tensor from GM (OUT) ### `ascendc.global_tensor.get_phy_addr` (ascendc::GlobalTensorGetPhyAddrOp) _Call `AscendC::GlobalTensor::GetPhyAddr` method_ Syntax: ``` operation ::= `ascendc.global_tensor.get_phy_addr` $tensor attr-dict (`,` $offset^)? `:` qualified(type($tensor)) `,` qualified(type($result)) (`,` type($offset)^)? ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) | `offset` | 64-bit unsigned integer #### Results: | Result | Description | | :----: | ----------- | | `result` | ranked or unranked memref of any type values ### `ascendc.global_tensor.get_shape_info` (ascendc::GlobalTensorGetShapeInfoOp) _Call `AscendC::GlobalTensor::GetShapeInfo` method_ Syntax: ``` operation ::= `ascendc.global_tensor.get_shape_info` $tensor attr-dict `:` qualified(type($tensor)) `,` type($results) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) #### Results: | Result | Description | | :----: | ----------- | | `results` | ### `ascendc.global_tensor.get_size` (ascendc::GlobalTensorGetSizeOp) _Call `AscendC::GlobalTensor::GetSize` method_ Syntax: ``` operation ::= `ascendc.global_tensor.get_size` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) #### Results: | Result | Description | | :----: | ----------- | | `value` | 64-bit unsigned integer ### `ascendc.global_tensor.get_value` (ascendc::GlobalTensorGetValueOp) _Call `AscendC::GlobalTensor::GetValue` method_ Syntax: ``` operation ::= `ascendc.global_tensor.get_value` $tensor `,` $offset attr-dict `:` qualified(type($tensor)) `,` qualified(type($offset)) `,` qualified(type($value)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) | `offset` | any type #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.global_tensor.set_global_buffer` (ascendc::GlobalTensorSetGlobalBufferOp) _Set data buffer of global tensor_ Syntax: ``` operation ::= `ascendc.global_tensor.set_global_buffer` $tensor `,` $buffer attr-dict (`,` $size^)? `:` qualified(type($tensor)) `,` qualified(type($buffer)) (`,` type($size)^)? ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) | `buffer` | ranked or unranked memref of any type values | `size` | integer ### `ascendc.global_tensor.set_l2_cache_hint` (ascendc::GlobalTensorSetL2CacheHintOp) _Call `AscendC::GlobalTensor::SetL2CacheHint` method_ Syntax: ``` operation ::= `ascendc.global_tensor.set_l2_cache_hint` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
mode::mlir::ascendc::CacheModeAttr
allowed 32-bit signless integer cases: 0, 1{{% markdown %}}Represents AscendC::CacheMode{{% /markdown %}}
rwMode::mlir::ascendc::CacheRwModeAttr
allowed 32-bit signless integer cases: 1, 2, 3{{% markdown %}}Represents AscendC::CacheRwMode{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) ### `ascendc.global_tensor.set_shape_info` (ascendc::GlobalTensorSetShapeInfoOp) _Call `AscendC::GlobalTensor::SetShapeInfo` method_ Syntax: ``` operation ::= `ascendc.global_tensor.set_shape_info` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) | `shapeInfo` | ### `ascendc.global_tensor.set_shape_info_v2` (ascendc::GlobalTensorSetShapeInfoV2Op) _Call `AscendC::GlobalTensor::SetShapeInfo` method_ Syntax: ``` operation ::= `ascendc.global_tensor.set_shape_info_v2` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) | `dims` | variadic of integer ### `ascendc.global_tensor.set_value` (ascendc::GlobalTensorSetValueOp) _Call `AscendC::GlobalTensor::SetValue` method_ Syntax: ``` operation ::= `ascendc.global_tensor.set_value` $tensor `,` $offset `,` $value attr-dict `:` qualified(type($tensor)) `,` qualified(type($offset)) `,` qualified(type($value)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) | `offset` | 64-bit unsigned integer | `value` | any type ### `ascendc.global_tensor.subindex` (ascendc::GlobalTensorSubIndexOp) _Call `AscendC::GlobalTensor::operator[]` method_ Syntax: ``` operation ::= `ascendc.global_tensor.subindex` $tensor `[` $index `]` attr-dict `:` qualified(type($tensor)) `,` type($index) `,` qualified(type($result)) ``` Traits: `AlwaysSpeculatableImplTrait` Interfaces: `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Global tensor from GM (OUT) | `index` | signless integer or index #### Results: | Result | Description | | :----: | ----------- | | `result` | Global tensor from GM (OUT) ### `ascendc.ib_set` (ascendc::IBSetOp) _Call `AscendC::IBSet` function_ Syntax: ``` operation ::= `ascendc.ib_set` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isAIVOnly::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `gmWorkspace` | Global tensor from GM (OUT) | `ubWorkspace` | Local tensor from UB | `blockIdx` | any type | `eventId` | any type ### `ascendc.ib_wait` (ascendc::IBWaitOp) _Call `AscendC::IBWait` function_ Syntax: ``` operation ::= `ascendc.ib_wait` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isAIVOnly::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `gmWorkspace` | Global tensor from GM (OUT) | `ubWorkspace` | Local tensor from UB | `blockIdx` | any type | `eventId` | any type ### `ascendc.icache_preload` (ascendc::ICachePreLoadOp) _Call `AscendC::ICachePreLoad` function_ Syntax: ``` operation ::= `ascendc.icache_preload` operands attr-dict `:` qualified(type(operands)) ``` Preload instructions from DDR address to ICache. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `preFetchLen` | 64-bit signless integer ### `ascendc.init_const_value` (ascendc::InitConstValueOp) _Call `AscendC::InitConstValue` function_ Syntax: ``` operation ::= `ascendc.init_const_value` operands attr-dict `:` qualified(type(operands)) ``` Initialize the LocalTensor at a specific TPosition to a specific value. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `initConstValueParams` | ### `ascendc.init_soc_state` (ascendc::InitSocStateOp) _Initialize AI Core global state_ Syntax: ``` operation ::= `ascendc.init_soc_state` attr-dict ``` Initialize global state registers like atomic accumulation state and mask mode Traits: `AscFunc` Interfaces: `APIOpInterface` ### `ascendc.kfc_server.init` (ascendc::KfcInitOp) _Call `AscendC::Init` function_ Syntax: ``` operation ::= `ascendc.kfc_server.init` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `server` | | `workspace` | any type ### `ascendc.kfc_server.init_obj` (ascendc::KfcInitObjOp) _Call `AscendC::InitObj` function_ Syntax: ``` operation ::= `ascendc.kfc_server.init_obj` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `server` | | `pipe` | | `ops` | variadic of any type ### `ascendc.kfc_server.is_run` (ascendc::KfcIsRunOp) _Call `AscendC::isRun` function_ Syntax: ``` operation ::= `ascendc.kfc_server.is_run` $server attr-dict `:` type($value) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `server` | #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.kfc_server.quit` (ascendc::KfcQuitOp) _Call `AscendC::Quit` function_ Syntax: ``` operation ::= `ascendc.kfc_server.quit` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `server` | ### `ascendc.kfc_server.run` (ascendc::KfcRunOp) _Call `AscendC::Run` function_ Syntax: ``` operation ::= `ascendc.kfc_server.run` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `server` | | `matmul` | ### `ascendc.leaky_relu_l0` (ascendc::LeakyReluL0Op) _Call `AscendC::LeakyRelu` function_ Syntax: ``` operation ::= `ascendc.leaky_relu_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::LeakyRelu` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.leaky_relu_l1` (ascendc::LeakyReluL1Op) _Call `AscendC::LeakyRelu` function_ Syntax: ``` operation ::= `ascendc.leaky_relu_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::LeakyRelu` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.leaky_relu_l2` (ascendc::LeakyReluL2Op) _Call `AscendC::LeakyRelu` function_ Syntax: ``` operation ::= `ascendc.leaky_relu_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::LeakyRelu` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.lgamma` (ascendc::LgammaOp) _Call `AscendC::Lgamma` function_ Syntax: ``` operation ::= `ascendc.lgamma` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Lgamma` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.list_tensor_desc` (ascendc::ListTensorDescOp) _Constructs a ListTensorDesc object_ Syntax: ``` operation ::= `ascendc.list_tensor_desc` attr-dict `:` qualified(type($result)) ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `result` | ### `ascendc.list_tensor_desc_get_data_ptr` (ascendc::ListTensorDescGetDataPtrOp) _Call `AscendC::ListTensorDesc::GetDataPtr` method_ Syntax: ``` operation ::= `ascendc.list_tensor_desc_get_data_ptr` $tensor `,` $index attr-dict `:` qualified(type($result)) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
dtype::mlir::TypeAttrany type attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | | `index` | 32-bit unsigned integer #### Results: | Result | Description | | :----: | ----------- | | `result` | ranked or unranked memref of any type values ### `ascendc.list_tensor_desc_get_desc` (ascendc::ListTensorDescGetDescOp) _Call `AscendC::ListTensorDesc::GetDesc` method_ Syntax: ``` operation ::= `ascendc.list_tensor_desc_get_desc` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | | `desc` | | `index` | 32-bit unsigned integer ### `ascendc.list_tensor_desc_get_size` (ascendc::ListTensorDescGetSizeOp) _Call `AscendC::ListTensorDesc::GetSize` method_ Syntax: ``` operation ::= `ascendc.list_tensor_desc_get_size` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | #### Results: | Result | Description | | :----: | ----------- | | `result` | 32-bit unsigned integer ### `ascendc.list_tensor_desc_init` (ascendc::ListTensorDescInitOp) _Call `AscendC::ListTensorDesc::Init` method_ Syntax: ``` operation ::= `ascendc.list_tensor_desc_init` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | | `data` | any type | `length` | 32-bit unsigned integer | `shapeSize` | 32-bit unsigned integer ### `ascendc.list_tensor_desc_v2` (ascendc::ListTensorDescV2Op) _Constructs a ListTensorDesc object_ Syntax: ``` operation ::= `ascendc.list_tensor_desc_v2` $data `,` $length `,` $shapeSize attr-dict `:` qualified(type($result)) `,` type($data) `,` type($length) `,` type($shapeSize) ``` #### Operands: | Operand | Description | | :-----: | ----------- | | `data` | any type | `length` | 32-bit unsigned integer | `shapeSize` | 32-bit unsigned integer #### Results: | Result | Description | | :----: | ----------- | | `result` | ### `ascendc.ln_l0` (ascendc::LnL0Op) _Call `AscendC::Ln` function_ Syntax: ``` operation ::= `ascendc.ln_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Ln` is a vector unary operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL0OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.ln_l1` (ascendc::LnL1Op) _Call `AscendC::Ln` function_ Syntax: ``` operation ::= `ascendc.ln_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Ln` is a vector unary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.ln_l2` (ascendc::LnL2Op) _Call `AscendC::Ln` function_ Syntax: ``` operation ::= `ascendc.ln_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Ln` is a vector unary operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL2OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.load_data` (ascendc::LoadDataOp) _Call `AscendC::LoadData` function_ Syntax: ``` operation ::= `ascendc.load_data` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `loadDataParams` | base load data params type ### `ascendc.load_data_3d_l0_v1` (ascendc::LoadData3DL0V1Op) _Call `AscendC::LoadData` function_ Syntax: ``` operation ::= `ascendc.load_data_3d_l0_v1` operands attr-dict `:` qualified(type(operands)) ``` Perform 3D LoadData V1 between LocalTensor and LocalTensor Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `loadDataParams` | ### `ascendc.load_data_3d_l0_v2` (ascendc::LoadData3DL0V2Op) _Call `AscendC::LoadData` function_ Syntax: ``` operation ::= `ascendc.load_data_3d_l0_v2` operands attr-dict `:` qualified(type(operands)) ``` Perform 3D LoadData V2 between LocalTensor and LocalTensor Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `loadDataParams` | ### `ascendc.load_data_3d_l0_v2pro` (ascendc::LoadData3DL0V2ProOp) _Call `AscendC::LoadData` function_ Syntax: ``` operation ::= `ascendc.load_data_3d_l0_v2pro` operands attr-dict `:` qualified(type(operands)) ``` Perform 3D LoadData V2Pro between LocalTensor and LocalTensor Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `loadDataParams` | ### `ascendc.load_data_g2l` (ascendc::LoadDataG2LOp) _Call `AscendC::LoadData` function_ Syntax: ``` operation ::= `ascendc.load_data_g2l` operands attr-dict `:` qualified(type(operands)) ``` Perform 2D LoadData from GlobalTensor to LocalTensor Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `loadDataParams` | ### `ascendc.load_data_g2l_v2` (ascendc::LoadDataG2LV2Op) _Call `AscendC::LoadData` function_ Syntax: ``` operation ::= `ascendc.load_data_g2l_v2` operands attr-dict `:` qualified(type(operands)) ``` Perform 2D LoadData V2 from GlobalTensor to LocalTensor Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `loadDataParams` | ### `ascendc.load_data_l0` (ascendc::LoadDataL0Op) _Call `AscendC::LoadData` function_ Syntax: ``` operation ::= `ascendc.load_data_l0` operands attr-dict `:` qualified(type(operands)) ``` Perform 2D LoadData between LocalTensor and LocalTensor Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `loadDataParams` | ### `ascendc.load_data_l0_v2` (ascendc::LoadDataL0V2Op) _Call `AscendC::LoadData` function_ Syntax: ``` operation ::= `ascendc.load_data_l0_v2` operands attr-dict `:` qualified(type(operands)) ``` Perform 2D LoadData V2 between LocalTensor and LocalTensor Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataCopyOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `loadDataParams` | ### `ascendc.load_data_with_sparse` (ascendc::LoadDataWithSparseOp) _Call `AscendC::LoadDataWithSparse` function_ Syntax: ``` operation ::= `ascendc.load_data_with_sparse` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `idx` | Local tensor from UB | `loadDataParam` | ### `ascendc.load_data_with_transpose` (ascendc::LoadDataWithTransposeOp) _Call `AscendC::LoadDataWithTranspose` function_ Syntax: ``` operation ::= `ascendc.load_data_with_transpose` operands attr-dict `:` qualified(type(operands)) ``` Perform 2D LoadData with transpose between tensors Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `loadDataParams` | ### `ascendc.load_data_with_transpose_v2` (ascendc::LoadDataWithTransposeV2Op) _Call `AscendC::LoadDataWithTranspose` function_ Syntax: ``` operation ::= `ascendc.load_data_with_transpose_v2` operands attr-dict `:` qualified(type(operands)) ``` Perform 2D LoadData with transpose (V2 params) between tensors Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `src` | base tensor type | `loadDataParams` | ### `ascendc.load_image_to_local` (ascendc::LoadImageToLocalOp) _Call `AscendC::LoadImageToLocal` function_ Syntax: ``` operation ::= `ascendc.load_image_to_local` operands attr-dict `:` qualified(type(operands)) ``` Load image data from Global Memory to LocalTensor (supports TPosition A1/B1). Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `loadDataParams` | ### `ascendc.local_mem_allocator` (ascendc::LocalMemAllocatorOp) _Instantiate LocalMemAllocator with specified hardware position_ Syntax: ``` operation ::= `ascendc.local_mem_allocator` $hardware attr-dict `:` type($hardware) `,` qualified(type($allocator)) ``` Traits: `AscConstructor` #### Operands: | Operand | Description | | :-----: | ----------- | | `hardware` | 64-bit signless integer #### Results: | Result | Description | | :----: | ----------- | | `allocator` | Represents AscendC::LocalMemAllocator ### `ascendc.local_mem_allocator.alloc` (ascendc::LocalMemAllocatorAllocOp) _Call `AscendC::LocalMemAllocator::Alloc` method with tileSize as template parameter_ Syntax: ``` operation ::= `ascendc.local_mem_allocator.alloc` $allocator `,` $pos `,` $tileSize `,` $dtype attr-dict `:` qualified(type($allocator)) `,` type($tileSize) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
dtype::mlir::TypeAttrany type attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `allocator` | Represents AscendC::LocalMemAllocator | `tileSize` | 32-bit signless integer #### Results: | Result | Description | | :----: | ----------- | | `result` | Local tensor from UB ### `ascendc.local_mem_allocator.alloc_dynamic` (ascendc::LocalMemAllocatorAllocDynamicOp) _Call `AscendC::LocalMemAllocator::Alloc` method with tileSize as runtime parameter_ Syntax: ``` operation ::= `ascendc.local_mem_allocator.alloc_dynamic` $allocator `,` $pos `,` $tileSize `,` $dtype attr-dict `:` qualified(type($allocator)) `,` type($tileSize) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
dtype::mlir::TypeAttrany type attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `allocator` | Represents AscendC::LocalMemAllocator | `tileSize` | 32-bit signless integer #### Results: | Result | Description | | :----: | ----------- | | `result` | Local tensor from UB ### `ascendc.local_mem_allocator.get_cur_addr` (ascendc::LocalMemAllocatorGetCurAddrOp) _Call `AscendC::LocalMemAllocator::GetCurAddr` method_ Syntax: ``` operation ::= `ascendc.local_mem_allocator.get_cur_addr` $allocator attr-dict `:` qualified(type($allocator)) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `allocator` | Represents AscendC::LocalMemAllocator #### Results: | Result | Description | | :----: | ----------- | | `result` | 32-bit unsigned integer ### `ascendc.local_tensor` (ascendc::LocalTensorOp) _Instantiate local tensor_ Syntax: ``` operation ::= `ascendc.local_tensor` attr-dict `:` qualified(type($tensor)) ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `tensor` | Local tensor from UB ### `ascendc.local_tensor.bracket` (ascendc::LocalTensorBracketOp) _Call `AscendC::LocalTensor::operator()` method_ Syntax: ``` operation ::= `ascendc.local_tensor.bracket` $tensor `(` $index `)` attr-dict `:` qualified(type($tensor)) `,` type($index) `,` qualified(type($result)) ``` Traits: `AlwaysSpeculatableImplTrait` Interfaces: `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `index` | signless integer or index #### Results: | Result | Description | | :----: | ----------- | | `result` | Local tensor from UB ### `ascendc.local_tensor.get_length` (ascendc::LocalTensorGetLengthOp) _Call `AscendC::LocalTensor::GetLength` method_ Syntax: ``` operation ::= `ascendc.local_tensor.get_length` $tensor attr-dict `:` qualified(type($tensor)) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB #### Results: | Result | Description | | :----: | ----------- | | `result` | 32-bit unsigned integer ### `ascendc.local_tensor.get_phy_addr` (ascendc::LocalTensorGetPhyAddrOp) _Call `AscendC::LocalTensor::GetPhyAddr` method_ Syntax: ``` operation ::= `ascendc.local_tensor.get_phy_addr` $tensor attr-dict (`,` $offset^)? `:` qualified(type($tensor)) `,` qualified(type($result)) (`,` type($offset)^)? ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `offset` | 32-bit unsigned integer #### Results: | Result | Description | | :----: | ----------- | | `result` | any type ### `ascendc.local_tensor.get_position` (ascendc::LocalTensorGetPositionOp) _Call `AscendC::LocalTensor::GetPosition` method_ Syntax: ``` operation ::= `ascendc.local_tensor.get_position` $tensor attr-dict `:` qualified(type($tensor)) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB #### Results: | Result | Description | | :----: | ----------- | | `result` | 32-bit signless integer ### `ascendc.local_tensor.get_shape_info` (ascendc::LocalTensorGetShapeInfoOp) _Call `AscendC::LocalTensor::GetShapeInfo` method_ Syntax: ``` operation ::= `ascendc.local_tensor.get_shape_info` $tensor attr-dict `:` qualified(type($tensor)) `,` qualified(type($results)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB #### Results: | Result | Description | | :----: | ----------- | | `results` | ### `ascendc.local_tensor.get_size` (ascendc::LocalTensorGetSizeOp) _Call `AscendC::LocalTensor::GetSize` method_ Syntax: ``` operation ::= `ascendc.local_tensor.get_size` $tensor attr-dict `:` qualified(type($tensor)) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB #### Results: | Result | Description | | :----: | ----------- | | `result` | signless integer or index ### `ascendc.local_tensor.get_user_tag` (ascendc::LocalTensorGetUserTagOp) _Call `AscendC::LocalTensor::GetUserTag` method_ Syntax: ``` operation ::= `ascendc.local_tensor.get_user_tag` $tensor attr-dict `:` qualified(type($tensor)) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB #### Results: | Result | Description | | :----: | ----------- | | `result` | signless integer or index ### `ascendc.local_tensor.get_value` (ascendc::LocalTensorGetValueOp) _Call `AscendC::LocalTensor::GetValue` method_ Syntax: ``` operation ::= `ascendc.local_tensor.get_value` $tensor `,` $index attr-dict `:` qualified(type($tensor)) `,` qualified(type($index)) `,` qualified(type($value)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface`, `OpWithSrcInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `index` | any type #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.local_tensor.print` (ascendc::LocalTensorPrintOp) _Call `AscendC::LocalTensor::Print` method_ Syntax: ``` operation ::= `ascendc.local_tensor.print` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `len` | 32-bit unsigned integer ### `ascendc.local_tensor.set_addr_with_offset` (ascendc::LocalTensorSetAddrWithOffsetOp) _Call `AscendC::LocalTensor::SetAddrWithOffset` method_ Syntax: ``` operation ::= `ascendc.local_tensor.set_addr_with_offset` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `src` | Local tensor from UB | `offset` | 32-bit unsigned integer ### `ascendc.local_tensor.set_buffer_len` (ascendc::LocalTensorSetBufferLenOp) _Call `AscendC::LocalTensor::SetBufferLen` method_ Syntax: ``` operation ::= `ascendc.local_tensor.set_buffer_len` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `dataLen` | 32-bit unsigned integer ### `ascendc.local_tensor.set_shape_info` (ascendc::LocalTensorSetShapeInfoOp) _Call `AscendC::LocalTensor::SetShapeInfo` method_ Syntax: ``` operation ::= `ascendc.local_tensor.set_shape_info` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `shapeInfo` | ### `ascendc.local_tensor.set_size` (ascendc::LocalTensorSetSizeOp) _Call `AscendC::LocalTensor::SetSize` method_ Syntax: ``` operation ::= `ascendc.local_tensor.set_size` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `size` | 32-bit unsigned integer ### `ascendc.local_tensor.set_user_tag` (ascendc::LocalTensorSetUserTagOp) _Call `AscendC::LocalTensor::SetUserTag` method_ Syntax: ``` operation ::= `ascendc.local_tensor.set_user_tag` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `tag` | 32-bit signless integer ### `ascendc.local_tensor.set_value` (ascendc::LocalTensorSetValueOp) _Call `AscendC::LocalTensor::SetValue` method_ Syntax: ``` operation ::= `ascendc.local_tensor.set_value` $tensor `,` $index `,` $value attr-dict `:` qualified(type($tensor)) `,` type($index) `,` type($value) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface`, `OpWithSrcInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `index` | any type | `value` | any type ### `ascendc.local_tensor.subindex` (ascendc::LocalTensorSubIndexOp) _Call `AscendC::LocalTensor::operator[]` method_ Syntax: ``` operation ::= `ascendc.local_tensor.subindex` $tensor `[` $index `]` attr-dict `:` qualified(type($tensor)) `,` type($index) `,` qualified(type($result)) ``` Traits: `AlwaysSpeculatableImplTrait` Interfaces: `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB | `index` | signless integer or index #### Results: | Result | Description | | :----: | ----------- | | `result` | Local tensor from UB ### `ascendc.local_tensor.to_file` (ascendc::LocalTensorToFileOp) _Call `AscendC::LocalTensor::ToFile` method_ Syntax: ``` operation ::= `ascendc.local_tensor.to_file` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
fileName::mlir::StringAttrstring attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB ### `ascendc.local_tensor_auto` (ascendc::LocalTensorAutoOp) _Create virtual tensor with automatic allocation semantic_ Syntax: ``` operation ::= `ascendc.local_tensor_auto` $position `(` $dynamicShape `)` (`input` $input^)? (`output` $output^)? attr-dict `:` type($result) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
input::mlir::UnitAttrunit attribute
output::mlir::UnitAttrunit attribute
position::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dynamicShape` | variadic of 64-bit signless integer #### Results: | Result | Description | | :----: | ----------- | | `result` | Local tensor from UB ### `ascendc.local_tensor_v2` (ascendc::LocalTensorV2Op) _Instantiate local tensor_ Syntax: ``` operation ::= `ascendc.local_tensor_v2` $pos `,` $addr `,` $tileSize attr-dict `:` qualified(type($result)) ``` #### Attributes:
AttributeMLIR TypeDescription
pos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `addr` | 32-bit unsigned integer | `tileSize` | 32-bit unsigned integer #### Results: | Result | Description | | :----: | ----------- | | `result` | Local tensor from UB ### `ascendc.local_tensor_v3` (ascendc::LocalTensorV3Op) _Instantiate local tensor_ Syntax: ``` operation ::= `ascendc.local_tensor_v3` $pos `,` $addr `,` $tileSize attr-dict `:` qualified(type($result)) ``` #### Attributes:
AttributeMLIR TypeDescription
pos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
addr::mlir::IntegerAttr32-bit signless integer attribute
tileSize::mlir::IntegerAttr32-bit signless integer attribute
#### Results: | Result | Description | | :----: | ----------- | | `result` | Local tensor from UB ### `ascendc.log` (ascendc::LogOp) _Call `AscendC::Log` function_ Syntax: ``` operation ::= `ascendc.log` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Log` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.log2` (ascendc::Log2Op) _Call `AscendC::Log2` function_ Syntax: ``` operation ::= `ascendc.log2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Log2` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.matmul.async_get_tensor_c` (ascendc::MatmulAsyncGetTensorCOp) _Call `AscendC::Matmul::AsyncGetTensorC` method_ Syntax: ``` operation ::= `ascendc.matmul.async_get_tensor_c` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `aux` | | `tensor` | Local tensor from UB ### `ascendc.matmul.disable_bias` (ascendc::MatmulDisableBiasOp) _Call `AscendC::DisableBias` function_ Syntax: ``` operation ::= `ascendc.matmul.disable_bias` operands attr-dict `:` qualified(type(operands)) ``` Matmul disable bias flag Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | ### `ascendc.matmul.end` (ascendc::MatmulEndOp) _Call `AscendC::End` function_ Syntax: ``` operation ::= `ascendc.matmul.end` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | ### `ascendc.matmul.get_batch_tensor_c` (ascendc::MatmulGetBatchTensorCOp) _Call `AscendC::GetBatchTensorC` function_ Syntax: ``` operation ::= `ascendc.matmul.get_batch_tensor_c` $matmul `,` $batchA `,` $batchB `,` $sequentialwrite `,` $sync attr-dict `:` qualified(type($matmul)) `,` type($batchA) `,` type($batchB) `,` type($sequentialwrite) `,` type($sync) `,` qualified(type($result)) ``` Matmul get batch tensor C result Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `batchA` | any type | `batchB` | any type | `sequentialwrite` | any type | `sync` | any type #### Results: | Result | Description | | :----: | ----------- | | `result` | Global tensor from GM (OUT) ### `ascendc.matmul.get_batch_tensor_c_local_mem` (ascendc::MatmulGetBatchTensorCLocalMemOp) _Call `AscendC::GetBatchTensorC` function_ Syntax: ``` operation ::= `ascendc.matmul.get_batch_tensor_c_local_mem` operands attr-dict `:` qualified(type(operands)) ``` Matmul get batch tensor C result use local memory Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `c` | Local tensor from UB | `batchA` | any type | `batchB` | any type | `sequentialwrite` | any type | `sync` | any type ### `ascendc.matmul.get_offset_c` (ascendc::MatmulGetOffsetCOp) _Call `AscendC::Matmul::GetOffsetC` method_ Syntax: ``` operation ::= `ascendc.matmul.get_offset_c` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `aux` | #### Results: | Result | Description | | :----: | ----------- | | `result` | ### `ascendc.matmul.get_tensor_c` (ascendc::MatmulGetTensorCOp) _Call `AscendC::GetTensorC` function_ Syntax: ``` operation ::= `ascendc.matmul.get_tensor_c` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `tensor` | base tensor type | `tensor2` | base tensor type | `atomic` | any type | `sequentialwrite` | any type | `sync` | any type ### `ascendc.matmul.get_tensor_c_return` (ascendc::MatmulGetTensorCReturnOp) _Call `AscendC::GetTensorC` function_ Syntax: ``` operation ::= `ascendc.matmul.get_tensor_c_return` $matmul `,` $atomic `,` $sequentialwrite `,` $sync attr-dict `:` qualified(type($matmul)) `,` type($atomic) `,` type($sequentialwrite) `,` type($sync) `,` qualified(type($result)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `atomic` | any type | `sequentialwrite` | any type | `sync` | any type #### Results: | Result | Description | | :----: | ----------- | | `result` | Global tensor from GM (OUT) ### `ascendc.matmul.init` (ascendc::MatmulInitOp) _Call `AscendC::Init` function_ Syntax: ``` operation ::= `ascendc.matmul.init` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `cubeTiling` | | `pipe` | ### `ascendc.matmul.iterate` (ascendc::MatmulIterateOp) _Call `AscendC::Iterate` function_ Syntax: ``` operation ::= `ascendc.matmul.iterate` $matmul `,` $partialsum `,` $sync attr-dict (`,` $localCmaxtrix^)? `:` qualified(type($matmul)) `,` type($partialsum) `,` type($sync) (`,` type($localCmaxtrix)^)? `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `partialsum` | any type | `localCmaxtrix` | Local tensor from UB | `sync` | any type #### Results: | Result | Description | | :----: | ----------- | | `result` | any type ### `ascendc.matmul.iterate_all` (ascendc::MatmulIterateAllOp) _Call `AscendC::IterateAll` function_ Syntax: ``` operation ::= `ascendc.matmul.iterate_all` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc`, `AttrSizedOperandSegments` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `tensor` | base tensor type | `enAtomic` | any type | `enSenquentialWrite` | any type | `waitIterateAll` | any type | `fakeMsg` | any type | `sync` | any type ### `ascendc.matmul.iterate_batch` (ascendc::MatmulIterateBatchOp) _Call `AscendC::IterateBatch` function_ Syntax: ``` operation ::= `ascendc.matmul.iterate_batch` operands attr-dict `:` qualified(type(operands)) ``` Matmul iterate batch interface for mix scence Traits: `AscMemberFunc`, `AttrSizedOperandSegments` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `tensor` | base tensor type | `batchA` | any type | `batchB` | any type | `enSenquentialWrite` | any type | `maxtrixStrideA` | any type | `maxtrixStrideB` | any type | `maxtrixStrideC` | any type | `enPartialSum` | any type | `enAtomic` | any type | `sync` | any type | `waitIterateBatch` | any type ### `ascendc.matmul.iterate_batch_cube_only` (ascendc::MatmulIterateBatchCubeOnlyOp) _Call `AscendC::IterateBatch` function_ Syntax: ``` operation ::= `ascendc.matmul.iterate_batch_cube_only` operands attr-dict `:` qualified(type(operands)) ``` Matmul iterate batch interface for cube-only scence Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `tensor` | base tensor type | `enPartialSum` | any type | `enAtomic` | any type | `enSenquentialWrite` | any type | `maxtrixStrideA` | any type | `maxtrixStrideB` | any type | `maxtrixStrideC` | any type ### `ascendc.matmul.iterate_n_batch` (ascendc::MatmulIterateNBatchOp) _Call `AscendC::Matmul::IterateNBatch` method_ Syntax: ``` operation ::= `ascendc.matmul.iterate_n_batch` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `aux` | | `batchLoop` | any type | `batchA` | any type | `batchB` | any type | `enSequentialWrite` | any type | `matrixStrideA` | any type | `matrixStrideB` | any type | `matrixStrideC` | any type | `sync` | any type | `waitIterateBatch` | any type ### `ascendc.matmul.set_batch_num` (ascendc::MatmulSetBatchNumOp) _Call `AscendC::Matmul::SetBatchNum` method_ Syntax: ``` operation ::= `ascendc.matmul.set_batch_num` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `aux` | | `batchA` | any type | `batchB` | any type ### `ascendc.matmul.set_bias` (ascendc::MatmulSetBiasOp) _Call `AscendC::SetBias` function_ Syntax: ``` operation ::= `ascendc.matmul.set_bias` operands attr-dict `:` qualified(type(operands)) ``` Matmul set bias tensor Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `tensor` | base tensor type ### `ascendc.matmul.set_hf32` (ascendc::MatmulSetHF32Op) _Call `AscendC::Matmul::SetHF32` method_ Syntax: ``` operation ::= `ascendc.matmul.set_hf32` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `aux` | | `enableHF32` | any type | `transMode` | any type ### `ascendc.matmul.set_org_shape` (ascendc::MatmulSetOrgShapeOp) _Call `AscendC::Matmul::SetOrgShape` method_ Syntax: ``` operation ::= `ascendc.matmul.set_org_shape` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc`, `AttrSizedOperandSegments` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `orgm` | any type | `orgn` | any type | `orgka` | any type | `orgkb` | any type | `orgkc` | any type ### `ascendc.matmul.set_quant_scalar` (ascendc::MatmulSetQuantScalarOp) _Call `AscendC::Matmul::SetQuantScalar` method_ Syntax: ``` operation ::= `ascendc.matmul.set_quant_scalar` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `quantscalar` | any type ### `ascendc.matmul.set_quant_vector` (ascendc::MatmulSetQuantVectorOp) _Call `AscendC::Matmul::SetQuantVector` method_ Syntax: ``` operation ::= `ascendc.matmul.set_quant_vector` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `quantvector` | Global tensor from GM (OUT) ### `ascendc.matmul.set_self_define_data` (ascendc::MatmulSetSelfDefineDataOp) _Call `AscendC::SetSelfDefineData` function_ Syntax: ``` operation ::= `ascendc.matmul.set_self_define_data` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `dataPtr` | any type ### `ascendc.matmul.set_single_shape` (ascendc::MatmulSetSingleShapeOp) _Call `AscendC::Matmul::SetSingleShape` method_ Syntax: ``` operation ::= `ascendc.matmul.set_single_shape` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `singlem` | any type | `singlen` | any type | `singlek` | any type ### `ascendc.matmul.set_sparse_index` (ascendc::MatmulSetSparseIndexOp) _Call `AscendC::SetSparseIndex` function_ Syntax: ``` operation ::= `ascendc.matmul.set_sparse_index` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `indexGlobal` | Global tensor from GM (OUT) ### `ascendc.matmul.set_tail` (ascendc::MatmulSetTailOp) _Call `AscendC::Matmul::SetTail` method_ Syntax: ``` operation ::= `ascendc.matmul.set_tail` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `aux` | | `tailM` | any type | `tailN` | any type | `tailK` | any type ### `ascendc.matmul.set_tensor_a` (ascendc::MatmulSetTensorAOp) _Call `AscendC::SetTensorA` function_ Syntax: ``` operation ::= `ascendc.matmul.set_tensor_a` operands attr-dict `:` qualified(type(operands)) ``` Matmul set left tensor input Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `tensor` | base tensor type | `transpose` | any type ### `ascendc.matmul.set_tensor_a_scalar` (ascendc::MatmulSetTensorAScalarOp) _Call `AscendC::SetTensorA` function_ Syntax: ``` operation ::= `ascendc.matmul.set_tensor_a_scalar` operands attr-dict `:` qualified(type(operands)) ``` Matmul set left scalar input Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `aScalar` | any type ### `ascendc.matmul.set_tensor_b` (ascendc::MatmulSetTensorBOp) _Call `AscendC::SetTensorB` function_ Syntax: ``` operation ::= `ascendc.matmul.set_tensor_b` operands attr-dict `:` qualified(type(operands)) ``` Matmul set right tensor input Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `tensor` | base tensor type | `transpose` | any type ### `ascendc.matmul.set_tensor_b_scalar` (ascendc::MatmulSetTensorBScalarOp) _Call `AscendC::SetTensorB` function_ Syntax: ``` operation ::= `ascendc.matmul.set_tensor_b_scalar` operands attr-dict `:` qualified(type(operands)) ``` Matmul set right scalar input Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `bScalar` | any type ### `ascendc.matmul.set_user_def_info` (ascendc::MatmulSetUserDefInfoOp) _Call `AscendC::SetUserDefInfo` function_ Syntax: ``` operation ::= `ascendc.matmul.set_user_def_info` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | | `tilingPtr` | memref of any type values ### `ascendc.matmul.set_workspace` (ascendc::MatmulSetWorkspaceOp) _Call `AscendC::Matmul::SetWorkspace` method_ Syntax: ``` operation ::= `ascendc.matmul.set_workspace` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `aux` | | `tensor` | any type | `size` | any type ### `ascendc.matmul.wait_get_tensor_c` (ascendc::MatmulWaitGetTensorCOp) _Call `AscendC::Matmul::WaitGetTensorC` method_ Syntax: ``` operation ::= `ascendc.matmul.wait_get_tensor_c` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `aux` | ### `ascendc.matmul.wait_iterate_all` (ascendc::MatmulWaitIterateAllOp) _Call `AscendC::WaitIterateAll` function_ Syntax: ``` operation ::= `ascendc.matmul.wait_iterate_all` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | ### `ascendc.matmul.wait_iterate_batch` (ascendc::MatmulWaitIterateBatchOp) _Call `AscendC::WaitIterateBatch` function_ Syntax: ``` operation ::= `ascendc.matmul.wait_iterate_batch` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `matmul` | ### `ascendc.max_l0` (ascendc::MaxL0Op) _Call `AscendC::Max` function_ Syntax: ``` operation ::= `ascendc.max_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Max` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.max_l1` (ascendc::MaxL1Op) _Call `AscendC::Max` function_ Syntax: ``` operation ::= `ascendc.max_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Max` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.max_l2` (ascendc::MaxL2Op) _Call `AscendC::Max` function_ Syntax: ``` operation ::= `ascendc.max_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Max` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.maxs_l0` (ascendc::MaxsL0Op) _Call `AscendC::Maxs` function_ Syntax: ``` operation ::= `ascendc.maxs_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Maxs` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.maxs_l1` (ascendc::MaxsL1Op) _Call `AscendC::Maxs` function_ Syntax: ``` operation ::= `ascendc.maxs_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Maxs` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.maxs_l2` (ascendc::MaxsL2Op) _Call `AscendC::Maxs` function_ Syntax: ``` operation ::= `ascendc.maxs_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Maxs` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.metrics_prof_start` (ascendc::MetricsProfStartOp) _Call `AscendC::MetricsProfStart` function_ Syntax: ``` operation ::= `ascendc.metrics_prof_start` attr-dict ``` Start performance metrics collection for a code region; pair with MetricsProfStop. Traits: `AscFunc` Interfaces: `APIOpInterface` ### `ascendc.metrics_prof_stop` (ascendc::MetricsProfStopOp) _Call `AscendC::MetricsProfStop` function_ Syntax: ``` operation ::= `ascendc.metrics_prof_stop` attr-dict ``` Stop performance metrics collection started by MetricsProfStart. Traits: `AscFunc` Interfaces: `APIOpInterface` ### `ascendc.min_l0` (ascendc::MinL0Op) _Call `AscendC::Min` function_ Syntax: ``` operation ::= `ascendc.min_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Min` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.min_l1` (ascendc::MinL1Op) _Call `AscendC::Min` function_ Syntax: ``` operation ::= `ascendc.min_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Min` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.min_l2` (ascendc::MinL2Op) _Call `AscendC::Min` function_ Syntax: ``` operation ::= `ascendc.min_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Min` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.mins_l0` (ascendc::MinsL0Op) _Call `AscendC::Mins` function_ Syntax: ``` operation ::= `ascendc.mins_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Mins` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.mins_l1` (ascendc::MinsL1Op) _Call `AscendC::Mins` function_ Syntax: ``` operation ::= `ascendc.mins_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Mins` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.mins_l2` (ascendc::MinsL2Op) _Call `AscendC::Mins` function_ Syntax: ``` operation ::= `ascendc.mins_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Mins` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.mmad` (ascendc::MmadOp) _Call `AscendC::Mmad` function_ Syntax: ``` operation ::= `ascendc.mmad` operands attr-dict `:` qualified(type(operands)) ``` Matrix multiply-accumulate between LocalTensors (dst += fm * filter) Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `fm` | base tensor type | `filter` | base tensor type | `mmadParams` | ### `ascendc.mmad_with_bias` (ascendc::MmadWithBiasOp) _Call `AscendC::Mmad` function_ Syntax: ``` operation ::= `ascendc.mmad_with_bias` operands attr-dict `:` qualified(type(operands)) ``` Matrix multiply-accumulate with bias (dst += fm * filter + bias) Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | base tensor type | `fm` | base tensor type | `filter` | base tensor type | `bias` | base tensor type | `mmadParams` | ### `ascendc.mmad_with_sparse` (ascendc::MmadWithSparseOp) _Call `AscendC::MmadWithSparse` function_ Syntax: ``` operation ::= `ascendc.mmad_with_sparse` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `fm` | Local tensor from UB | `filter` | Local tensor from UB | `mmadParams` | ### `ascendc.mrg_sort` (ascendc::MrgSortOp) _Call `AscendC::MrgSort` method_ Syntax: ``` operation ::= `ascendc.mrg_sort` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::MrgSort` merges sorted queues into one queue. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isExhaustedSuspension::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `sortList` | | `elementCountList` | variadic of 16-bit unsigned integer | `sortedNum` | variadic of 32-bit unsigned integer | `validBit` | any type | `repeatTime` | any type ### `ascendc.mrg_sort4` (ascendc::MrgSort4Op) _Call `AscendC::MrgSort4` method_ Syntax: ``` operation ::= `ascendc.mrg_sort4` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::MrgSort4` merges sorted Region Proposals queues into one queue. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | | `params` | ### `ascendc.mrg_sort_src_list` (ascendc::MrgSortSrcListOp) _Instantiate MrgSortSrcList_ Syntax: ``` operation ::= `ascendc.mrg_sort_src_list` attr-dict `:` qualified(type($params)) ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `params` | ### `ascendc.mrg_sort_with_info` (ascendc::MrgSortWithInfoOp) _Call `AscendC::MrgSort` method with MrgSort4Info parameter_ Syntax: ``` operation ::= `ascendc.mrg_sort_with_info` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::MrgSort` merges sorted queues into one queue using MrgSort4Info parameter. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | | `params` | ### `ascendc.mul_add_dst_l0` (ascendc::MulAddDstL0Op) _Call `AscendC::MulAddDst` function_ Syntax: ``` operation ::= `ascendc.mul_add_dst_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::MulAddDst` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.mul_add_dst_l1` (ascendc::MulAddDstL1Op) _Call `AscendC::MulAddDst` function_ Syntax: ``` operation ::= `ascendc.mul_add_dst_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::MulAddDst` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.mul_add_dst_l2` (ascendc::MulAddDstL2Op) _Call `AscendC::MulAddDst` function_ Syntax: ``` operation ::= `ascendc.mul_add_dst_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::MulAddDst` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.mul_cast_l0` (ascendc::MulCastL0Op) _Call `AscendC::MulCast` function_ Syntax: ``` operation ::= `ascendc.mul_cast_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::MulCast` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.mul_cast_l1` (ascendc::MulCastL1Op) _Call `AscendC::MulCast` function_ Syntax: ``` operation ::= `ascendc.mul_cast_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::MulCast` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.mul_cast_l2` (ascendc::MulCastL2Op) _Call `AscendC::MulCast` function_ Syntax: ``` operation ::= `ascendc.mul_cast_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::MulCast` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.mul_l0` (ascendc::MulL0Op) _Call `AscendC::Mul` function_ Syntax: ``` operation ::= `ascendc.mul_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Mul` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.mul_l1` (ascendc::MulL1Op) _Call `AscendC::Mul` function_ Syntax: ``` operation ::= `ascendc.mul_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Mul` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.mul_l2` (ascendc::MulL2Op) _Call `AscendC::Mul` function_ Syntax: ``` operation ::= `ascendc.mul_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Mul` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.mul_l3` (ascendc::MulL3Op) _Call `LocalTensor::operator*` method_ Syntax: ``` operation ::= `ascendc.mul_l3` operands attr-dict `:` qualified(type(operands)) ``` `LocalTensor::operator*` performs a vector binary operation (L3 API). Interfaces: `APIOpInterface`, `BinaryL3OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type ### `ascendc.muls_l0` (ascendc::MulsL0Op) _Call `AscendC::Muls` function_ Syntax: ``` operation ::= `ascendc.muls_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Muls` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.muls_l1` (ascendc::MulsL1Op) _Call `AscendC::Muls` function_ Syntax: ``` operation ::= `ascendc.muls_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Muls` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.muls_l2` (ascendc::MulsL2Op) _Call `AscendC::Muls` function_ Syntax: ``` operation ::= `ascendc.muls_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Muls` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.neg_l2` (ascendc::NegL2Op) _Call `AscendC::Neg` function_ Syntax: ``` operation ::= `ascendc.neg_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Neg` is a vector unary operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL2OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.noop` (ascendc::NoOp) _Noop_ Syntax: ``` operation ::= `ascendc.noop` attr-dict ``` ### `ascendc.not_l0` (ascendc::NotL0Op) _Call `AscendC::Not` function_ Syntax: ``` operation ::= `ascendc.not_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Not` is a vector unary operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL0OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.not_l1` (ascendc::NotL1Op) _Call `AscendC::Not` function_ Syntax: ``` operation ::= `ascendc.not_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Not` is a vector unary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.not_l2` (ascendc::NotL2Op) _Call `AscendC::Not` function_ Syntax: ``` operation ::= `ascendc.not_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Not` is a vector unary operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL2OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.notify_next_block` (ascendc::NotifyNextBlockOp) _Notify the next core that the current core's operation is complete._ Syntax: ``` operation ::= `ascendc.notify_next_block` $gmWorkspace `,` $ubWorkspace attr-dict `:` type($gmWorkspace) `,` type($ubWorkspace) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `gmWorkspace` | Global tensor from GM (OUT) | `ubWorkspace` | Local tensor from UB ### `ascendc.or_l0` (ascendc::OrL0Op) _Call `AscendC::Or` function_ Syntax: ``` operation ::= `ascendc.or_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Or` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.or_l1` (ascendc::OrL1Op) _Call `AscendC::Or` function_ Syntax: ``` operation ::= `ascendc.or_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Or` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.or_l2` (ascendc::OrL2Op) _Call `AscendC::Or` function_ Syntax: ``` operation ::= `ascendc.or_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Or` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.pair_reduce_sum_l0` (ascendc::PairReduceSumL0Op) _Call `AscendC::PairReduceSum` function_ Syntax: ``` operation ::= `ascendc.pair_reduce_sum_l0` operands attr-dict `:` qualified(type(operands)) ``` Pair reduce sum operation with continuous mask (L0 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `mask` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.pair_reduce_sum_l1` (ascendc::PairReduceSumL1Op) _Call `AscendC::PairReduceSum` function_ Syntax: ``` operation ::= `ascendc.pair_reduce_sum_l1` operands attr-dict `:` qualified(type(operands)) ``` Pair reduce sum operation with bit mask (L1 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `mask` | variadic of 64-bit unsigned integer | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.pipe` (ascendc::PipeOp) _Instantiate pipe_ Syntax: ``` operation ::= `ascendc.pipe` attr-dict ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `pipe` | ### `ascendc.pipe.alloc_event_id` (ascendc::TPipeAllocEventIDOp) _TPipe AllocEventID_ Syntax: ``` operation ::= `ascendc.pipe.alloc_event_id` $pipe `,` $event attr-dict `:` type($event_id) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
event::mlir::ascendc::HardEventAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35{{% markdown %}}Represents AscendC::HardEvent{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | #### Results: | Result | Description | | :----: | ----------- | | `event_id` | signless integer or index ### `ascendc.pipe.destroy` (ascendc::TPipeTQueBindDestroyOp) _TPipe Destroy_ Syntax: ``` operation ::= `ascendc.pipe.destroy` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | ### `ascendc.pipe.fetch_event_id` (ascendc::TPipeFetchEventIDOp) _TPipe FetchEventID_ Syntax: ``` operation ::= `ascendc.pipe.fetch_event_id` $pipe `,` $event attr-dict `:` type($event_id) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
event::mlir::ascendc::HardEventAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35{{% markdown %}}Represents AscendC::HardEvent{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | #### Results: | Result | Description | | :----: | ----------- | | `event_id` | signless integer or index ### `ascendc.pipe.get_base_addr` (ascendc::TPipeGetBaseAddrOp) _TPipe GetBaseAddr_ Syntax: ``` operation ::= `ascendc.pipe.get_base_addr` $pipe `,` $logicPos attr-dict `:` type($value) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
logicPos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.pipe.init` (ascendc::TPipeInitOp) _TPipe Initialize_ Syntax: ``` operation ::= `ascendc.pipe.init` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | ### `ascendc.pipe.init_buf_pool` (ascendc::TPipeInitBufPoolOp) _TPipe InitBufPool_ Syntax: ``` operation ::= `ascendc.pipe.init_buf_pool` `(` $pipe `,` $bufPool `,` $len `)` attr-dict (` ` `,` ` ` $shareBuf^)? `:` type($pipe) `,` type($bufPool) `,` type($len) (` ` `,` ` ` type($shareBuf)^)? `->` type($value) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | | `bufPool` | any type | `len` | any type | `shareBuf` | any type #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.pipe.init_buffer` (ascendc::TPipeInitBufferOp) _Initialize raw buffer_ Syntax: ``` operation ::= `ascendc.pipe.init_buffer` $pipe `,` $buffer `,` $length attr-dict `:` qualified(type($buffer)) `,` type($length) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | | `buffer` | | `length` | any type ### `ascendc.pipe.init_queue` (ascendc::TPipeInitQueueOp) _Initialize queue_ Syntax: ``` operation ::= `ascendc.pipe.init_queue` $pipe `,` $queue `,` $num `,` $length attr-dict `:` qualified(type($queue)) `,` type($num) `,` type($length) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | | `queue` | base queue type | `num` | any type | `length` | any type ### `ascendc.pipe.release_event_id` (ascendc::TPipeReleaseEventIDOp) _TPipe ReleaseEventID_ Syntax: ``` operation ::= `ascendc.pipe.release_event_id` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
event::mlir::ascendc::HardEventAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35{{% markdown %}}Represents AscendC::HardEvent{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | | `id` | any type ### `ascendc.pipe.reset` (ascendc::TPipeResetOp) _TPipe Reset_ Syntax: ``` operation ::= `ascendc.pipe.reset` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | ### `ascendc.pipe_barrier` (ascendc::PipeBarrierOp) _Call `AscendC::PipeBarrier` function_ Syntax: ``` operation ::= `ascendc.pipe_barrier` $pipe attr-dict ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pipe::mlir::ascendc::PipeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10{{% markdown %}}Represents pipe_t{{% /markdown %}}
### `ascendc.pop_stack_buffer` (ascendc::PopStackBufferOp) _Call `AscendC::PopStackBuffer` function_ Syntax: ``` operation ::= `ascendc.pop_stack_buffer` $pos $tensor attr-dict `:` qualified(type($tensor)) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `tensor` | Local tensor from UB ### `ascendc.power` (ascendc::PowerOp) _Call `AscendC::Power` function_ Syntax: ``` operation ::= `ascendc.power` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Power` is a binary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `BinaryMathOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src0` | any type | `src1` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.prelu_l2` (ascendc::PreluL2Op) _Call `AscendC::Prelu` function_ Syntax: ``` operation ::= `ascendc.prelu_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Prelu` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.print_time_stamp` (ascendc::PrintTimeStampOp) _Call `AscendC::PrintTimeStamp` function_ Syntax: ``` operation ::= `ascendc.print_time_stamp` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `descId` | any type ### `ascendc.printf` (ascendc::PrintfOp) _Call `AscendC::printf` function_ Syntax: ``` operation ::= `ascendc.printf` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
desc::mlir::StringAttrstring attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `vars` | variadic of any type ### `ascendc.proposal_concat` (ascendc::ProposalConcatOp) _Call `AscendC::ProposalConcat` function_ Syntax: ``` operation ::= `ascendc.proposal_concat` operands attr-dict `:` qualified(type(operands)) ``` Merge continuous elements into the corresponding positions within the Region Proposal Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `modeNumber` | any type ### `ascendc.proposal_extract` (ascendc::ProposalExtractOp) _Call `AscendC::ProposalExtract` function_ Syntax: ``` operation ::= `ascendc.proposal_extract` operands attr-dict `:` qualified(type(operands)) ``` Extract the individual elements at the corresponding positions from the Region Proposals and then rearrange them. Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `modeNumber` | any type ### `ascendc.quant` (ascendc::QuantOp) _Call `AscendC::AscendQuant` function_ Syntax: ``` operation ::= `ascendc.quant` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `OpWithDstInterface` #### Attributes:
AttributeMLIR TypeDescription
isReuseSource::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `srcTensor` | Local tensor from UB | `scale` | floating-point | `offset` | floating-point | `calCount` | integer | `sharedTmpBuffer` | Local tensor from UB | `config` | ### `ascendc.que_bind` (ascendc::QueBindOp) _Instantiate QueBind_ Syntax: ``` operation ::= `ascendc.que_bind` attr-dict `:` type($que_bind) ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `que_bind` | ### `ascendc.que_bind.alloc_tensor` (ascendc::TQueBindAllocTensorOp) _Allocate tensor on queue wrapped buffer_ Syntax: ``` operation ::= `ascendc.que_bind.alloc_tensor` $queue attr-dict `:` qualified(type($queue)) `,` qualified(type($tensor)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type #### Results: | Result | Description | | :----: | ----------- | | `tensor` | Local tensor from UB ### `ascendc.que_bind.alloc_tensor_in_place` (ascendc::TQueBindAllocTensorInPlaceOp) _Allocate tensor on queue wrapped buffer_ Syntax: ``` operation ::= `ascendc.que_bind.alloc_tensor_in_place` $queue `,` $tensor attr-dict `:` qualified(type($queue)) `,` qualified(type($tensor)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type | `tensor` | Local tensor from UB ### `ascendc.que_bind.deque_tensor` (ascendc::TQueBindDequeTensorOp) _Pop tensor out from queue_ Syntax: ``` operation ::= `ascendc.que_bind.deque_tensor` $queue attr-dict `:` qualified(type($queue)) `,` qualified(type($tensor)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type #### Results: | Result | Description | | :----: | ----------- | | `tensor` | Local tensor from UB ### `ascendc.que_bind.deque_tensor_in_place` (ascendc::TQueBindDequeTensorInPlaceOp) _Pop tensor out from queue_ Syntax: ``` operation ::= `ascendc.que_bind.deque_tensor_in_place` $queue `,` $tensor attr-dict `:` qualified(type($queue)) `,` qualified(type($tensor)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type | `tensor` | Local tensor from UB ### `ascendc.que_bind.deque_tensor_pos` (ascendc::TQueBindDequeTensorPosOp) _Pop tensor out from queue_ Syntax: ``` operation ::= `ascendc.que_bind.deque_tensor_pos` $queue `,` $srcUserPos `,` $dstUserPos attr-dict `:` qualified(type($queue)) `,` qualified(type($tensor)) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
srcUserPos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
dstUserPos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type #### Results: | Result | Description | | :----: | ----------- | | `tensor` | Local tensor from UB ### `ascendc.que_bind.destroy` (ascendc::TQueBindDestroyOp) _Push tensor back to queue_ Syntax: ``` operation ::= `ascendc.que_bind.destroy` $queue attr-dict `:` qualified(type($queue)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type ### `ascendc.que_bind.enque_tensor` (ascendc::TQueBindEnqueTensorOp) _Push tensor back to queue_ Syntax: ``` operation ::= `ascendc.que_bind.enque_tensor` $queue `,` $tensor attr-dict `:` qualified(type($queue)) `,` qualified(type($tensor)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type | `tensor` | Local tensor from UB ### `ascendc.que_bind.enque_tensor_pos` (ascendc::TQueBindEnqueTensorPosOp) _Push tensor back to queue with position_ Syntax: ``` operation ::= `ascendc.que_bind.enque_tensor_pos` $queue `,` $tensor `,` $srcUserPos `,` $dstUserPos attr-dict `:` qualified(type($queue)) `,` qualified(type($tensor)) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
srcUserPos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
dstUserPos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type | `tensor` | Local tensor from UB ### `ascendc.que_bind.free_tensor` (ascendc::TQueBindFreeTensorOp) _Release buffer held by tensor_ Syntax: ``` operation ::= `ascendc.que_bind.free_tensor` $queue `,` $tensor attr-dict `:` qualified(type($queue)) `,` qualified(type($tensor)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type | `tensor` | Local tensor from UB ### `ascendc.que_bind.get_tensor_count_in_que` (ascendc::TQueBindGetTensorCountInQueOp) _GetTensorCountInQue_ Syntax: ``` operation ::= `ascendc.que_bind.get_tensor_count_in_que` $queue attr-dict `:` qualified(type($queue)) `,` type($value) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.que_bind.has_idle_buffer` (ascendc::TQueBindHasIdleBufferOp) _HasIdleBuffer_ Syntax: ``` operation ::= `ascendc.que_bind.has_idle_buffer` $queue attr-dict `:` qualified(type($queue)) `,` type($value) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.que_bind.has_tensor_in_que` (ascendc::TQueBindHasTensorInQueOp) _TQueBind HasTensorInQue_ Syntax: ``` operation ::= `ascendc.que_bind.has_tensor_in_que` $queue attr-dict `:` qualified(type($queue)) `,` type($value) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.que_bind.init_buf_handle` (ascendc::TQueBindInitBufHandleOp) _TQueBind InitBufHandle_ Syntax: ``` operation ::= `ascendc.que_bind.init_buf_handle` $queue `,` $bufPool `,` $index `,` $bufhandle `,` $curPoolAddr `,` $len attr-dict `:` qualified(type($queue)) `,` qualified(type($bufPool)) `,` qualified(type($index)) `,` qualified(type($bufhandle)) `,` qualified(type($curPoolAddr)) `,` qualified(type($len)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type | `bufPool` | any type | `index` | 32-bit unsigned integer | `bufhandle` | any type | `curPoolAddr` | 32-bit signless integer | `len` | 32-bit unsigned integer ### `ascendc.que_bind.init_start_buf_handle` (ascendc::TQueBindInitStartBufHandleOp) _TQueBind InitStartBufHandle_ Syntax: ``` operation ::= `ascendc.que_bind.init_start_buf_handle` $queue `,` $startBufhandle `,` $num `,` $len attr-dict `:` qualified(type($queue)) `,` qualified(type($startBufhandle)) `,` qualified(type($num)) `,` qualified(type($len)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type | `startBufhandle` | any type | `num` | 8-bit unsigned integer | `len` | 32-bit unsigned integer ### `ascendc.que_bind.vacant_in_que` (ascendc::TQueBindVacantInQueOp) _VacantInQue_ Syntax: ``` operation ::= `ascendc.que_bind.vacant_in_que` $queue attr-dict `:` qualified(type($queue)) `,` type($value) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `queue` | base queue type #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.queue` (ascendc::QueueOp) _Instantiate queue_ Syntax: ``` operation ::= `ascendc.queue` attr-dict `:` type($queue) ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `queue` | ### `ascendc.reciprocal_l0` (ascendc::ReciprocalL0Op) _Call `AscendC::Reciprocal` function_ Syntax: ``` operation ::= `ascendc.reciprocal_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Reciprocal` is a vector unary operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL0OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.reciprocal_l1` (ascendc::ReciprocalL1Op) _Call `AscendC::Reciprocal` function_ Syntax: ``` operation ::= `ascendc.reciprocal_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Reciprocal` is a vector unary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.reciprocal_l2` (ascendc::ReciprocalL2Op) _Call `AscendC::Reciprocal` function_ Syntax: ``` operation ::= `ascendc.reciprocal_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Reciprocal` is a vector unary operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL2OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.reduce_max` (ascendc::ReduceMaxOp) _Call `AscendC::ReduceMax` function_ Syntax: ``` operation ::= `ascendc.reduce_max` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `ReduceOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pattern::mlir::ascendc::ReducePatternAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15{{% markdown %}}Describes reduction pattern from reduce_common.h{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `srcShape` | variadic of 32-bit signless integer ### `ascendc.reduce_max_l0` (ascendc::ReduceMaxL0Op) _Call `AscendC::ReduceMax` function_ Syntax: ``` operation ::= `ascendc.reduce_max_l0` operands attr-dict `:` qualified(type(operands)) ``` Reduce maximum elements (L0 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `mask` | any type | `repeatTime` | any type | `srcRepStride` | any type | `calIndex` | any type ### `ascendc.reduce_max_l1` (ascendc::ReduceMaxL1Op) _Call `AscendC::ReduceMax` function_ Syntax: ``` operation ::= `ascendc.reduce_max_l1` operands attr-dict `:` qualified(type(operands)) ``` Reduce maximum elements (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `mask` | variadic of any type | `repeatTime` | any type | `srcRepStride` | any type | `calIndex` | any type ### `ascendc.reduce_max_l2` (ascendc::ReduceMaxL2Op) _Call `AscendC::ReduceMax` function_ Syntax: ``` operation ::= `ascendc.reduce_max_l2` operands attr-dict `:` qualified(type(operands)) ``` Reduce maximum elements (L2 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `count` | any type | `calIndex` | any type ### `ascendc.reduce_min` (ascendc::ReduceMinOp) _Call `AscendC::ReduceMin` function_ Syntax: ``` operation ::= `ascendc.reduce_min` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `ReduceOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pattern::mlir::ascendc::ReducePatternAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15{{% markdown %}}Describes reduction pattern from reduce_common.h{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `srcShape` | variadic of 32-bit signless integer ### `ascendc.reduce_min_l0` (ascendc::ReduceMinL0Op) _Call `AscendC::ReduceMin` function_ Syntax: ``` operation ::= `ascendc.reduce_min_l0` operands attr-dict `:` qualified(type(operands)) ``` Reduce minimum elements (L0 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `mask` | any type | `repeatTime` | any type | `srcRepStride` | any type | `calIndex` | any type ### `ascendc.reduce_min_l1` (ascendc::ReduceMinL1Op) _Call `AscendC::ReduceMin` function_ Syntax: ``` operation ::= `ascendc.reduce_min_l1` operands attr-dict `:` qualified(type(operands)) ``` Reduce minimum elements (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `mask` | variadic of any type | `repeatTime` | any type | `srcRepStride` | any type | `calIndex` | any type ### `ascendc.reduce_min_l2` (ascendc::ReduceMinL2Op) _Call `AscendC::ReduceMin` function_ Syntax: ``` operation ::= `ascendc.reduce_min_l2` operands attr-dict `:` qualified(type(operands)) ``` Reduce minimum elements (L2 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `count` | any type | `calIndex` | any type ### `ascendc.reduce_prod` (ascendc::ReduceProdOp) _Call `AscendC::ReduceProd` function_ Syntax: ``` operation ::= `ascendc.reduce_prod` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `ReduceOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pattern::mlir::ascendc::ReducePatternAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15{{% markdown %}}Describes reduction pattern from reduce_common.h{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `srcShape` | variadic of 32-bit signless integer ### `ascendc.reduce_sum` (ascendc::ReduceSumOp) _Call `AscendC::ReduceSum` function_ Syntax: ``` operation ::= `ascendc.reduce_sum` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `ReduceOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pattern::mlir::ascendc::ReducePatternAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15{{% markdown %}}Describes reduction pattern from reduce_common.h{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `srcShape` | variadic of 32-bit signless integer ### `ascendc.reduce_sum_l0` (ascendc::ReduceSumL0Op) _Call `AscendC::ReduceSum` function_ Syntax: ``` operation ::= `ascendc.reduce_sum_l0` operands attr-dict `:` qualified(type(operands)) ``` Reduce sum elements (L0 API, int32_t mask). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `mask` | any type | `repeatTime` | any type | `srcRepStride` | any type ### `ascendc.reduce_sum_l1` (ascendc::ReduceSumL1Op) _Call `AscendC::ReduceSum` function_ Syntax: ``` operation ::= `ascendc.reduce_sum_l1` operands attr-dict `:` qualified(type(operands)) ``` Reduce sum elements (L1 API, uint64_t[] mask). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `mask` | variadic of any type | `repeatTime` | any type | `srcRepStride` | any type ### `ascendc.reduce_sum_l2` (ascendc::ReduceSumL2Op) _Call `AscendC::ReduceSum` function_ Syntax: ``` operation ::= `ascendc.reduce_sum_l2` operands attr-dict `:` qualified(type(operands)) ``` Reduce sum elements (L2 API, int32_t count). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `count` | any type ### `ascendc.regist_matmul_obj` (ascendc::RegistMatmulObjOp) _Call `AscendC::REGIST_MATMUL_OBJ` function_ Syntax: ``` operation ::= `ascendc.regist_matmul_obj` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `pipe` | | `workspace` | any type | `matmul` | | `tiling` | ### `ascendc.reinterpret_cast` (ascendc::LocalTensorReinterpretCastOp) _Call `AscendC::LocalTensor::ReinterpretCast` method_ Syntax: ``` operation ::= `ascendc.reinterpret_cast` $in attr-dict `:` qualified(type($in)) `to` qualified(type($out)) ``` Traits: `AlwaysSpeculatableImplTrait` Interfaces: `APIOpInterface`, `CastOpInterface`, `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Operands: | Operand | Description | | :-----: | ----------- | | `in` | Local tensor from UB #### Results: | Result | Description | | :----: | ----------- | | `out` | Local tensor from UB ### `ascendc.relu_l0` (ascendc::ReluL0Op) _Call `AscendC::Relu` function_ Syntax: ``` operation ::= `ascendc.relu_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Relu` is a vector unary operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL0OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.relu_l1` (ascendc::ReluL1Op) _Call `AscendC::Relu` function_ Syntax: ``` operation ::= `ascendc.relu_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Relu` is a vector unary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.relu_l2` (ascendc::ReluL2Op) _Call `AscendC::Relu` function_ Syntax: ``` operation ::= `ascendc.relu_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Relu` is a vector unary operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL2OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.repeat_reduce_sum_l0` (ascendc::RepeatReduceSumL0Op) _Call `AscendC::RepeatReduceSum` function_ Syntax: ``` operation ::= `ascendc.repeat_reduce_sum_l0` operands attr-dict `:` qualified(type(operands)) ``` Repeat reduce sum operation (L0 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `repeatTime` | any type | `mask` | any type | `dstBlkStride` | any type | `srcBlkStride` | any type | `dstRepStride` | any type | `srcRepStride` | any type ### `ascendc.reset_mask` (ascendc::ResetMaskOp) _Reset mask_ Syntax: ``` operation ::= `ascendc.reset_mask` attr-dict ``` Traits: `AscFunc` Interfaces: `APIOpInterface` ### `ascendc.rls_buf` (ascendc::RlsBufOp) _Call `AscendC::rls_buf` function_ Syntax: ``` operation ::= `ascendc.rls_buf` $pipe `,` $bufId attr-dict ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pipe::mlir::ascendc::PipeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10{{% markdown %}}Represents pipe_t{{% /markdown %}}
bufId::mlir::IntegerAttr32-bit signless integer attribute
mode::mlir::UnitAttrunit attribute
### `ascendc.rmsnorm` (ascendc::RmsNormOp) _Call `AscendC::RmsNorm` function_ Syntax: ``` operation ::= `ascendc.rmsnorm` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
basicBlock::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `gamma` | Local tensor from UB | `epsilon` | any type | `tiling` | | `sharedTmpBuffer` | Local tensor from UB ### `ascendc.round` (ascendc::RoundOp) _Call `AscendC::Round` function_ Syntax: ``` operation ::= `ascendc.round` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Round` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.rp_sort16` (ascendc::RpSort16Op) _Call `AscendC::RpSort16` method_ Syntax: ``` operation ::= `ascendc.rp_sort16` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::RpSort16` sorts Region Proposals by score field (higher scores first), 16 proposals at a time. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `repeatTime` | any type ### `ascendc.rsqrt_l0` (ascendc::RsqrtL0Op) _Call `AscendC::Rsqrt` function_ Syntax: ``` operation ::= `ascendc.rsqrt_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Rsqrt` is a vector unary operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL0OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.rsqrt_l1` (ascendc::RsqrtL1Op) _Call `AscendC::Rsqrt` function_ Syntax: ``` operation ::= `ascendc.rsqrt_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Rsqrt` is a vector unary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.rsqrt_l2` (ascendc::RsqrtL2Op) _Call `AscendC::Rsqrt` function_ Syntax: ``` operation ::= `ascendc.rsqrt_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Rsqrt` is a vector unary operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL2OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.scalar_cast` (ascendc::ScalarCastOp) _Call `AscendC::ScalarCast` function_ Syntax: ``` operation ::= `ascendc.scalar_cast` $valueIn attr-dict `:` type($valueIn) `->` type($valueOut) ``` Convert the data type of a scalar value. Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
dtype::mlir::TypeAttrany type attribute
roundMode::mlir::ascendc::RoundModeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6{{% markdown %}}Represents AscendC::RoundMode{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `valueIn` | any type #### Results: | Result | Description | | :----: | ----------- | | `valueOut` | any type ### `ascendc.scalar_count_leading_zero` (ascendc::ScalarCountLeadingZeroOp) _Call `AscendC::ScalarCountLeadingZero` function_ Syntax: ``` operation ::= `ascendc.scalar_count_leading_zero` operands attr-dict `:` qualified(type(operands)) `->` type($count) ``` Count the number of leading zeros in a uint64_t value. Returns the count of leading zeros from MSB to the first 1. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `valueIn` | 64-bit unsigned integer #### Results: | Result | Description | | :----: | ----------- | | `count` | 64-bit signless integer ### `ascendc.scalar_get_count_of_value` (ascendc::ScalarGetCountOfValueOp) _Call `AscendC::ScalarGetCountOfValue` function_ Syntax: ``` operation ::= `ascendc.scalar_get_count_of_value` operands attr-dict `:` qualified(type(operands)) `->` type($count) ``` Count the number of 0 or 1 bits in a uint64_t value. Returns the count of specified bit value. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `valueIn` | 64-bit unsigned integer | `countValue` | 32-bit signless integer #### Results: | Result | Description | | :----: | ----------- | | `count` | 64-bit signless integer ### `ascendc.scalar_get_sff_value` (ascendc::ScalarGetSFFValueOp) _Call `AscendC::ScalarGetSFFValue` function_ Syntax: ``` operation ::= `ascendc.scalar_get_sff_value` operands attr-dict `:` qualified(type(operands)) `->` type($position) ``` Get the position of the first 0 or 1 (from LSB) in a uint64_t value. Returns -1 if not found. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `valueIn` | 64-bit unsigned integer | `countValue` | integer #### Results: | Result | Description | | :----: | ----------- | | `position` | signless integer or index ### `ascendc.scatter_l0` (ascendc::ScatterL0Op) _Call `AscendC::Scatter` function_ Syntax: ``` operation ::= `ascendc.scatter_l0` operands attr-dict `:` qualified(type(operands)) ``` Scatter elements from source tensor to destination tensor (L0 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `dstOffset` | Local tensor from UB | `dstBase` | any type | `mask` | any type | `repeatTimes` | any type | `srcRepStride` | any type ### `ascendc.scatter_l1` (ascendc::ScatterL1Op) _Call `AscendC::Scatter` function_ Syntax: ``` operation ::= `ascendc.scatter_l1` operands attr-dict `:` qualified(type(operands)) ``` Scatter elements from source tensor to destination tensor (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `dstOffset` | Local tensor from UB | `dstBase` | any type | `mask` | variadic of any type | `repeatTimes` | any type | `srcRepStride` | any type ### `ascendc.scatter_l2` (ascendc::ScatterL2Op) _Call `AscendC::Scatter` function_ Syntax: ``` operation ::= `ascendc.scatter_l2` operands attr-dict `:` qualified(type(operands)) ``` Scatter elements from source tensor to destination tensor (L2 API). Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `dstOffset` | Local tensor from UB | `dstBase` | any type | `count` | any type ### `ascendc.select_l0` (ascendc::SelectL0Op) _Call `AscendC::Select` function_ Syntax: ``` operation ::= `ascendc.select_l0` operands attr-dict `:` qualified(type(operands)) ``` Select elements from two source tensors (L0 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
selMode::mlir::ascendc::SELMODEAttr
allowed 32-bit signless integer cases: 0, 1, 2{{% markdown %}}Represents AscendC::SELMODE{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `selMask` | Local tensor from UB | `src0` | Local tensor from UB | `src1` | Local tensor from UB | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.select_l1` (ascendc::SelectL1Op) _Call `AscendC::Select` function_ Syntax: ``` operation ::= `ascendc.select_l1` operands attr-dict `:` qualified(type(operands)) ``` Select elements from two source tensors (L1 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
selMode::mlir::ascendc::SELMODEAttr
allowed 32-bit signless integer cases: 0, 1, 2{{% markdown %}}Represents AscendC::SELMODE{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `selMask` | Local tensor from UB | `src0` | Local tensor from UB | `src1` | Local tensor from UB | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.select_l2` (ascendc::SelectL2Op) _Call `AscendC::Select` function_ Syntax: ``` operation ::= `ascendc.select_l2` operands attr-dict `:` qualified(type(operands)) ``` Select elements from two source tensors (L2 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
selMode::mlir::ascendc::SELMODEAttr
allowed 32-bit signless integer cases: 0, 1, 2{{% markdown %}}Represents AscendC::SELMODE{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `selMask` | Local tensor from UB | `src0` | Local tensor from UB | `src1` | Local tensor from UB | `calCount` | any type ### `ascendc.select_reg` (ascendc::SelectRegOp) _Call `AscendC::Select` function_ Syntax: ``` operation ::= `ascendc.select_reg` operands attr-dict `:` qualified(type(operands)) ``` Select elements from two source tensors (register mask API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
selMode::mlir::ascendc::SELMODEAttr
allowed 32-bit signless integer cases: 0, 1, 2{{% markdown %}}Represents AscendC::SELMODE{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src0` | Local tensor from UB | `src1` | Local tensor from UB | `repeatTimes` | any type | `repeatParams` | ### `ascendc.select_scalar_l0` (ascendc::SelectScalarL0Op) _Call `AscendC::Select` function_ Syntax: ``` operation ::= `ascendc.select_scalar_l0` operands attr-dict `:` qualified(type(operands)) ``` Select elements from source tensor and a scalar (L0 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
selMode::mlir::ascendc::SELMODEAttr
allowed 32-bit signless integer cases: 0, 1, 2{{% markdown %}}Represents AscendC::SELMODE{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `selMask` | Local tensor from UB | `src0` | Local tensor from UB | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.select_scalar_l1` (ascendc::SelectScalarL1Op) _Call `AscendC::Select` function_ Syntax: ``` operation ::= `ascendc.select_scalar_l1` operands attr-dict `:` qualified(type(operands)) ``` Select elements from source tensor and a scalar (L1 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
selMode::mlir::ascendc::SELMODEAttr
allowed 32-bit signless integer cases: 0, 1, 2{{% markdown %}}Represents AscendC::SELMODE{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `selMask` | Local tensor from UB | `src0` | Local tensor from UB | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.select_scalar_l2` (ascendc::SelectScalarL2Op) _Call `AscendC::Select` function_ Syntax: ``` operation ::= `ascendc.select_scalar_l2` operands attr-dict `:` qualified(type(operands)) ``` Select elements from source tensor and a scalar (L2 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
selMode::mlir::ascendc::SELMODEAttr
allowed 32-bit signless integer cases: 0, 1, 2{{% markdown %}}Represents AscendC::SELMODE{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `selMask` | Local tensor from UB | `src0` | Local tensor from UB | `src1` | any type | `calCount` | any type ### `ascendc.select_scalar_reg` (ascendc::SelectScalarRegOp) _Call `AscendC::Select` function_ Syntax: ``` operation ::= `ascendc.select_scalar_reg` operands attr-dict `:` qualified(type(operands)) ``` Select elements from source tensor and a scalar (register mask API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `selMask` | Local tensor from UB | `src0` | Local tensor from UB | `repeatTimes` | any type | `repeatParams` | ### `ascendc.set_aipp_functions` (ascendc::SetAippFunctionsOp) _Call `AscendC::SetAippFunctions` method for AIPP configuration_ Syntax: ``` operation ::= `ascendc.set_aipp_functions` $src0 (`,` $src1^)? `,` $config `,` `format` `=` $format attr-dict `:` functional-type(operands, results) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
format::mlir::ascendc::AippInputFormatAttr
allowed 32-bit signless integer cases: 0, 1, 4, 9{{% markdown %}}Enum cases: * YUV420SP_U8 (`YUV420SP_U8`) * XRGB8888_U8 (`XRGB8888_U8`) * RGB888_U8 (`RGB888_U8`) * YUV400_U8 (`YUV400_U8`){{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `src0` | Global tensor from GM (OUT) | `src1` | Global tensor from GM (OUT) | `config` | ### `ascendc.set_atomic_add` (ascendc::SetAtomicAddOp) _Enable atomic addition for subsequent data transfers using the specified data type_ Syntax: ``` operation ::= `ascendc.set_atomic_add` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
dtype::mlir::TypeAttrany type attribute
### `ascendc.set_atomic_max` (ascendc::SetAtomicMaxOp) _Enable atomic maximum comparison using the specified data type_ Syntax: ``` operation ::= `ascendc.set_atomic_max` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
dtype::mlir::TypeAttrany type attribute
### `ascendc.set_atomic_min` (ascendc::SetAtomicMinOp) _Enable atomic minimum comparison using the specified data type_ Syntax: ``` operation ::= `ascendc.set_atomic_min` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
dtype::mlir::TypeAttrany type attribute
### `ascendc.set_atomic_none` (ascendc::SetAtomicNoneOp) _Disable all atomic operations for subsequent data transfers_ Syntax: ``` operation ::= `ascendc.set_atomic_none` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` ### `ascendc.set_atomic_type` (ascendc::SetAtomicTypeOp) _Set atomic operation data type by template type parameter_ Syntax: ``` operation ::= `ascendc.set_atomic_type` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
dtype::mlir::TypeAttrany type attribute
### `ascendc.set_cmp_mask` (ascendc::SetCmpMaskOp) _Call `AscendC::SetCmpMask` function_ Syntax: ``` operation ::= `ascendc.set_cmp_mask` operands attr-dict `:` qualified(type(operands)) ``` set register for Select(without mask) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `src` | Local tensor from UB ### `ascendc.set_deq_scale` (ascendc::SetDeqScaleOp) _Call `AscendC::SetDeqScale` function_ Syntax: ``` operation ::= `ascendc.set_deq_scale` $scale attr-dict (`,` $offset^)? (`,` $signMode^)? `:` qualified(type($scale)) (`,` type($offset)^)? (`,` type($signMode)^)? ``` Traits: `AscFunc`, `AttrSizedOperandSegments` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `scale` | any type | `offset` | 16-bit signless integer | `signMode` | any type ### `ascendc.set_deq_scale_l4` (ascendc::SetDeqScaleL4Op) _Call `AscendC::SetDeqScale` function_ Syntax: ``` operation ::= `ascendc.set_deq_scale_l4` operands attr-dict `:` qualified(type(operands)) ``` Set dequantization scale, offset and sign mode information Interfaces: `APIOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `vdeq` | Local tensor from UB | `vdeqInfo` | ### `ascendc.set_ffts_base_addr` (ascendc::SetFftsBaseAddrOp) _Call `AscendC::SetFftsBaseAddr` function_ Syntax: ``` operation ::= `ascendc.set_ffts_base_addr` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | «unnamed» | memref of any type values ### `ascendc.set_fixpipe_pre_quant_flag` (ascendc::SetFixpipePreQuantFlagOp) _Call `AscendC::SetFixpipePreQuantFlag` function_ Syntax: ``` operation ::= `ascendc.set_fixpipe_pre_quant_flag` $config attr-dict `:` type($config) ``` Set scalar quantization parameters in fixpipe quantization process Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `config` | any type ### `ascendc.set_flag` (ascendc::SetFlagOp) _Call `AscendC::SetFlag` function_ Syntax: ``` operation ::= `ascendc.set_flag` $event `,` $eventId attr-dict `:` type($eventId) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
event::mlir::ascendc::HardEventAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35{{% markdown %}}Represents AscendC::HardEvent{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `eventId` | any type ### `ascendc.set_fmatrix` (ascendc::SetFmatrixOp) _Call `AscendC::SetFmatrix` function_ Syntax: ``` operation ::= `ascendc.set_fmatrix` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `l1H` | signless integer or index | `l1W` | signless integer or index | `padList` | ranked or unranked memref of any type values | `fmatrixMode` | ### `ascendc.set_hccl_context` (ascendc::SetHcclContextOp) _Call `AscendC::SetHcclContext` function_ Syntax: ``` operation ::= `ascendc.set_hccl_context` $index `,` $context attr-dict `:` type($index) `,` type($context) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `index` | any type | `context` | any type ### `ascendc.set_hf32_mode` (ascendc::SetHF32ModeOp) _Set HF32 compute mode_ Syntax: ``` operation ::= `ascendc.set_hf32_mode` $mode attr-dict `:` type($mode) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `mode` | 1-bit signless integer ### `ascendc.set_hf32_trans_mode` (ascendc::SetHF32TransModeOp) _Set HF32 transform mode_ Syntax: ``` operation ::= `ascendc.set_hf32_trans_mode` $trans_mode attr-dict `:` type($trans_mode) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `trans_mode` | 1-bit signless integer ### `ascendc.set_load_data_boundary` (ascendc::SetLoadDataBoundaryOp) _Call `AscendC::SetLoadDataBoundary` function_ Syntax: ``` operation ::= `ascendc.set_load_data_boundary` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `value` | signless integer or index ### `ascendc.set_load_data_padding_value` (ascendc::SetLoadDataPaddingValueOp) _Call `AscendC::SetLoadDataPaddingValue` function_ Syntax: ``` operation ::= `ascendc.set_load_data_padding_value` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `padValue` | any type ### `ascendc.set_load_data_repeat` (ascendc::SetLoadDataRepeatOp) _Call `AscendC::SetLoadDataRepeat` function_ Syntax: ``` operation ::= `ascendc.set_load_data_repeat` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `repeatParams` | ### `ascendc.set_mask_count` (ascendc::SetMaskCountOp) _Set mask count_ Syntax: ``` operation ::= `ascendc.set_mask_count` attr-dict ``` Traits: `AscFunc` Interfaces: `APIOpInterface` ### `ascendc.set_mask_norm` (ascendc::SetMaskNormOp) _Set mask normalization_ Syntax: ``` operation ::= `ascendc.set_mask_norm` attr-dict ``` Traits: `AscFunc` Interfaces: `APIOpInterface` ### `ascendc.set_mm_layout_transform` (ascendc::SetMMLayoutTransformOp) _Set MM layout transform mode_ Syntax: ``` operation ::= `ascendc.set_mm_layout_transform` $mm_layout_mode attr-dict `:` type($mm_layout_mode) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `mm_layout_mode` | 1-bit signless integer ### `ascendc.set_pad_value` (ascendc::SetPadValueOp) _Call `AscendC::SetPadValue` function_ Syntax: ``` operation ::= `ascendc.set_pad_value` operands attr-dict `:` qualified(type(operands)) ``` Set padding value for DataCopyPad Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
pos::mlir::ascendc::TPositionAttr
queue/buffer position{{% markdown %}}Represents AscendC::TPosition{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `paddingValue` | any type ### `ascendc.set_store_atomic_config` (ascendc::SetStoreAtomicConfigOp) _Set atomic operation enable bit and atomic operation type_ Syntax: ``` operation ::= `ascendc.set_store_atomic_config` $atomicType `,` $atomicOp attr-dict ``` Configure atomic operation enable bit and atomic operation type Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
atomicType::mlir::ascendc::AtomicDtypeAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6{{% markdown %}}Represents AscendC::AtomicDtype{{% /markdown %}}
atomicOp::mlir::ascendc::AtomicOpAttr
allowed 32-bit signless integer cases: 0{{% markdown %}}Represents AscendC::AtomicOp{{% /markdown %}}
### `ascendc.set_sys_workspace` (ascendc::SetSysWorkspaceOp) _Call `AscendC::SetSysWorkspace` function_ Syntax: ``` operation ::= `ascendc.set_sys_workspace` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `workspace` | any type ### `ascendc.set_vector_mask_l0` (ascendc::SetVectorMaskL0Op) _Set vector mask in continuous mode (L0 API, Normal or Counter mode)_ Syntax: ``` operation ::= `ascendc.set_vector_mask_l0` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
dtype::mlir::TypeAttrany type attribute
mode::mlir::ascendc::MaskModeAttr
allowed 32-bit signless integer cases: 0, 1{{% markdown %}}Represents AscendC::MaskMode{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `len` | any type ### `ascendc.set_vector_mask_l1` (ascendc::SetVectorMaskL1Op) _Set vector mask in bit mode (L1 API, Normal or Counter mode)_ Syntax: ``` operation ::= `ascendc.set_vector_mask_l1` operands attr-dict `:` qualified(type(operands)) ``` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
dtype::mlir::TypeAttrany type attribute
mode::mlir::ascendc::MaskModeAttr
allowed 32-bit signless integer cases: 0, 1{{% markdown %}}Represents AscendC::MaskMode{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `maskHigh` | any type | `maskLow` | any type ### `ascendc.shape_info.original_shape` (ascendc::ShapeInfoOriginalShapeOp) Syntax: ``` operation ::= `ascendc.shape_info.original_shape` $base `,` $dim attr-dict type($dim) `,` type($result) ``` #### Operands: | Operand | Description | | :-----: | ----------- | | `base` | | `dim` | signless integer or index #### Results: | Result | Description | | :----: | ----------- | | `result` | signless integer or index ### `ascendc.shape_info.shape` (ascendc::ShapeInfoShapeOp) Syntax: ``` operation ::= `ascendc.shape_info.shape` $base `,` $dim attr-dict type($dim) `,` type($result) ``` #### Operands: | Operand | Description | | :-----: | ----------- | | `base` | | `dim` | signless integer or index #### Results: | Result | Description | | :----: | ----------- | | `result` | signless integer or index ### `ascendc.shift_left_l0` (ascendc::ShiftLeftL0Op) _Call `AscendC::ShiftLeft` function_ Syntax: ``` operation ::= `ascendc.shift_left_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::ShiftLeft` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.shift_left_l1` (ascendc::ShiftLeftL1Op) _Call `AscendC::ShiftLeft` function_ Syntax: ``` operation ::= `ascendc.shift_left_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::ShiftLeft` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.shift_left_l2` (ascendc::ShiftLeftL2Op) _Call `AscendC::ShiftLeft` function_ Syntax: ``` operation ::= `ascendc.shift_left_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::ShiftLeft` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.shift_right_l0` (ascendc::ShiftRightL0Op) _Call `AscendC::ShiftRight` function_ Syntax: ``` operation ::= `ascendc.shift_right_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::ShiftRight` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.shift_right_l1` (ascendc::ShiftRightL1Op) _Call `AscendC::ShiftRight` function_ Syntax: ``` operation ::= `ascendc.shift_right_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::ShiftRight` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.shift_right_l2` (ascendc::ShiftRightL2Op) _Call `AscendC::ShiftRight` function_ Syntax: ``` operation ::= `ascendc.shift_right_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::ShiftRight` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.sign` (ascendc::SignOp) _Call `AscendC::Sign` function_ Syntax: ``` operation ::= `ascendc.sign` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sign` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.simple_softmax` (ascendc::SimpleSoftMaxOp) _Call `AscendC::SimpleSoftMax` function_ Syntax: ``` operation ::= `ascendc.simple_softmax` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
reuseSource::mlir::UnitAttrunit attribute
basicBlock::mlir::UnitAttrunit attribute
dataFormatNZ::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `sumTensor` | Local tensor from UB | `maxTensor` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `tiling` | | `softmaxShapeInfo` | any type ### `ascendc.sin` (ascendc::SinOp) _Call `AscendC::Sin` function_ Syntax: ``` operation ::= `ascendc.sin` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sin` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.sinh` (ascendc::SinhOp) _Call `AscendC::Sinh` function_ Syntax: ``` operation ::= `ascendc.sinh` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sinh` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.slice_info.subindex` (ascendc::SliceInfoSubIndexOp) _Call `AscendC::SliceInfo::operator[]` method_ Syntax: ``` operation ::= `ascendc.slice_info.subindex` $sliceInfo `[` $index `]` attr-dict `:` qualified(type($sliceInfo)) `,` type($index) `,` qualified(type($result)) ``` Traits: `AlwaysSpeculatableImplTrait` Interfaces: `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Operands: | Operand | Description | | :-----: | ----------- | | `sliceInfo` | | `index` | signless integer or index #### Results: | Result | Description | | :----: | ----------- | | `result` | ### `ascendc.softmax` (ascendc::SoftMaxOp) _Call `AscendC::SoftMax` function_ Syntax: ``` operation ::= `ascendc.softmax` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
reuseSource::mlir::UnitAttrunit attribute
basicBlock::mlir::UnitAttrunit attribute
dataFormatNZ::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `sumTensor` | Local tensor from UB | `maxTensor` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `tiling` | | `softmaxShapeInfo` | any type ### `ascendc.sort` (ascendc::SortOp) _Call `AscendC::Sort` method_ Syntax: ``` operation ::= `ascendc.sort` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sort` performs descending sort with different data layouts for different platforms. Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isFullSort::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `concat` | any type | `index` | any type | `tmp` | any type | `repeatTime` | any type ### `ascendc.sort32` (ascendc::Sort32Op) _Call `AscendC::Sort32` method_ Syntax: ``` operation ::= `ascendc.sort32` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sort32` sorts 32 elements per iteration, storing results as (score, index) pairs. Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `repeatTime` | any type ### `ascendc.sqrt_l0` (ascendc::SqrtL0Op) _Call `AscendC::Sqrt` function_ Syntax: ``` operation ::= `ascendc.sqrt_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sqrt` is a vector unary operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL0OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.sqrt_l1` (ascendc::SqrtL1Op) _Call `AscendC::Sqrt` function_ Syntax: ``` operation ::= `ascendc.sqrt_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sqrt` is a vector unary operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.sqrt_l2` (ascendc::SqrtL2Op) _Call `AscendC::Sqrt` function_ Syntax: ``` operation ::= `ascendc.sqrt_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sqrt` is a vector unary operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryL2OpInterface`, `UnaryOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `calCount` | any type ### `ascendc.sub_l0` (ascendc::SubL0Op) _Call `AscendC::Sub` function_ Syntax: ``` operation ::= `ascendc.sub_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sub` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.sub_l1` (ascendc::SubL1Op) _Call `AscendC::Sub` function_ Syntax: ``` operation ::= `ascendc.sub_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sub` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.sub_l2` (ascendc::SubL2Op) _Call `AscendC::Sub` function_ Syntax: ``` operation ::= `ascendc.sub_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Sub` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.sub_l3` (ascendc::SubL3Op) _Call `LocalTensor::operator-` method_ Syntax: ``` operation ::= `ascendc.sub_l3` operands attr-dict `:` qualified(type(operands)) ``` `LocalTensor::operator-` performs a vector binary operation (L3 API). Interfaces: `APIOpInterface`, `BinaryL3OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type ### `ascendc.sub_relu_cast_l0` (ascendc::SubReluCastL0Op) _Call `AscendC::SubReluCast` function_ Syntax: ``` operation ::= `ascendc.sub_relu_cast_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::SubReluCast` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.sub_relu_cast_l1` (ascendc::SubReluCastL1Op) _Call `AscendC::SubReluCast` function_ Syntax: ``` operation ::= `ascendc.sub_relu_cast_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::SubReluCast` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.sub_relu_cast_l2` (ascendc::SubReluCastL2Op) _Call `AscendC::SubReluCast` function_ Syntax: ``` operation ::= `ascendc.sub_relu_cast_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::SubReluCast` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.sub_relu_l0` (ascendc::SubReluL0Op) _Call `AscendC::SubRelu` function_ Syntax: ``` operation ::= `ascendc.sub_relu_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::SubRelu` is a vector binary operation (L0 API). Interfaces: `APIOpInterface`, `BinaryL0OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.sub_relu_l1` (ascendc::SubReluL1Op) _Call `AscendC::SubRelu` function_ Syntax: ``` operation ::= `ascendc.sub_relu_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::SubRelu` is a vector binary operation (L1 API). Interfaces: `APIOpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.sub_relu_l2` (ascendc::SubReluL2Op) _Call `AscendC::SubRelu` function_ Syntax: ``` operation ::= `ascendc.sub_relu_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::SubRelu` is a vector binary operation (L2 API). Interfaces: `APIOpInterface`, `BinaryL2OpInterface`, `BinaryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src0` | any type | `src1` | any type | `calCount` | any type ### `ascendc.subs_l0` (ascendc::SubsL0Op) _Call `AscendC::Subs` function_ Syntax: ``` operation ::= `ascendc.subs_l0` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Subs` is a vector-scalar operation (L0 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL0OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | any type | `repeatTimes` | any type | `repeatParams` | ### `ascendc.subs_l1` (ascendc::SubsL1Op) _Call `AscendC::Subs` function_ Syntax: ``` operation ::= `ascendc.subs_l1` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Subs` is a vector-scalar operation (L1 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `mask` | variadic of 64-bit unsigned integer | `repeatTimes` | any type | `repeatParams` | ### `ascendc.subs_l2` (ascendc::SubsL2Op) _Call `AscendC::Subs` function_ Syntax: ``` operation ::= `ascendc.subs_l2` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Subs` is a vector-scalar operation (L2 API). Interfaces: `APIOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VecScalarL2OpInterface`, `VecScalarOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | any type | `src` | any type | `scalar` | any type | `calCount` | any type ### `ascendc.sync_all_hard` (ascendc::SyncAllHardOp) _Call `AscendC::SyncAll` function_ Syntax: ``` operation ::= `ascendc.sync_all_hard` attr-dict ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isAIVOnly::mlir::UnitAttrunit attribute
### `ascendc.sync_all_soft` (ascendc::SyncAllSoftOp) _Call `AscendC::SyncAll` function_ Syntax: ``` operation ::= `ascendc.sync_all_soft` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isAIVOnly::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `gmWorkspace` | Global tensor from GM (OUT) | `ubWorkspace` | Local tensor from UB | `usedCores` | any type ### `ascendc.tan` (ascendc::TanOp) _Call `AscendC::Tan` function_ Syntax: ``` operation ::= `ascendc.tan` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Tan` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.tanh` (ascendc::TanhOp) _Call `AscendC::Tanh` function_ Syntax: ``` operation ::= `ascendc.tanh` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Tanh` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.tbuf` (ascendc::TBufOp) _Instantiate buffer_ Syntax: ``` operation ::= `ascendc.tbuf` attr-dict `:` type($buffer) ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `buffer` | ### `ascendc.tbuf.get_tensor` (ascendc::TBufGetTensorOp) _Obtain tensor from initialized buffer_ Syntax: ``` operation ::= `ascendc.tbuf.get_tensor` $buffer attr-dict (`,` $len^)? `:` qualified(type($buffer)) `,` qualified(type($tensor)) (`,` type($len)^)? ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `buffer` | | `len` | any type #### Results: | Result | Description | | :----: | ----------- | | `tensor` | Local tensor from UB ### `ascendc.tbuf.get_with_offset` (ascendc::TBufGetWithOffsetOp) _Obtain tensor from initialized buffer with offset_ Syntax: ``` operation ::= `ascendc.tbuf.get_with_offset` $buffer `,` $size `,` $bufOffset attr-dict `:` qualified(type($buffer)) `,` qualified(type($size)) `,` qualified(type($bufOffset)) `,` qualified(type($tensor)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `buffer` | | `size` | any type | `bufOffset` | any type #### Results: | Result | Description | | :----: | ----------- | | `tensor` | Local tensor from UB ### `ascendc.tbuf_pool.init_buf_pool` (ascendc::TBufPoolInitBufPoolOp) _TBufPool InitBufPool_ Syntax: ``` operation ::= `ascendc.tbuf_pool.init_buf_pool` `(` $origin `,` $bufPool `,` $len `)` attr-dict (` ` `,` ` ` $shareBuf^)? `:` type($origin) `,` type($bufPool) `,` type($len) (` ` `,` ` ` type($shareBuf)^)? `->` type($value) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `origin` | | `bufPool` | any type | `len` | any type | `shareBuf` | any type #### Results: | Result | Description | | :----: | ----------- | | `value` | any type ### `ascendc.tbuf_pool.init_buffer` (ascendc::TBufPoolInitBufferOp) _TBufPool initialize raw buffer_ Syntax: ``` operation ::= `ascendc.tbuf_pool.init_buffer` $bufPool `,` $buffer `,` $length attr-dict `:` qualified(type($bufPool)) `,` qualified(type($buffer)) `,` type($length) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `bufPool` | | `buffer` | | `length` | any type ### `ascendc.tbuf_pool.init_queue` (ascendc::TBufPoolInitQueueOp) _TBufPool initialize queue_ Syntax: ``` operation ::= `ascendc.tbuf_pool.init_queue` $bufPool `,` $queue `,` $num `,` $length attr-dict `:` qualified(type($bufPool)) `,` qualified(type($queue)) `,` type($num) `,` type($length) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `bufPool` | | `queue` | base queue type | `num` | any type | `length` | any type ### `ascendc.tbuf_pool.reset` (ascendc::TBufPoolResetOp) _TBufPool Reset_ Syntax: ``` operation ::= `ascendc.tbuf_pool.reset` operands attr-dict `:` qualified(type(operands)) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `bufPool` | ### `ascendc.tBufPool` (ascendc::TBufPoolOp) _Instantiate tBufPool_ Syntax: ``` operation ::= `ascendc.tBufPool` attr-dict `:` type($tBufPool) ``` Traits: `AscConstructor` #### Results: | Result | Description | | :----: | ----------- | | `tBufPool` | ### `ascendc.tensor_desc` (ascendc::TensorDescOp) Syntax: ``` operation ::= `ascendc.tensor_desc` $elementType attr-dict `:` qualified(type($tensorDesc)) ``` #### Attributes:
AttributeMLIR TypeDescription
elementType::mlir::TypeAttrany type attribute
#### Results: | Result | Description | | :----: | ----------- | | `tensorDesc` | ### `ascendc.tensor_desc_get_data_obj` (ascendc::TensorDescGetDataObjOp) _Call `AscendC::GetDataObj` function_ Syntax: ``` operation ::= `ascendc.tensor_desc_get_data_obj` $tensorDesc attr-dict `:` qualified(type($tensorDesc)) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensorDesc` | #### Results: | Result | Description | | :----: | ----------- | | `result` | Global tensor from GM (OUT) ### `ascendc.tensor_desc_get_data_ptr` (ascendc::TensorDescGetDataPtrOp) _Call `AscendC::GetDataPtr` function_ Syntax: ``` operation ::= `ascendc.tensor_desc_get_data_ptr` $tensorDesc attr-dict `:` qualified(type($tensorDesc)) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensorDesc` | #### Results: | Result | Description | | :----: | ----------- | | `result` | ranked or unranked memref of any type values ### `ascendc.tensor_desc_get_dim` (ascendc::TensorDescGetDimOp) _Call `AscendC::GetDim` function_ Syntax: ``` operation ::= `ascendc.tensor_desc_get_dim` $tensorDesc attr-dict `:` qualified(type($tensorDesc)) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensorDesc` | #### Results: | Result | Description | | :----: | ----------- | | `result` | 64-bit unsigned integer ### `ascendc.tensor_desc_get_index` (ascendc::TensorDescGetIndexOp) _Call `AscendC::GetIndex` function_ Syntax: ``` operation ::= `ascendc.tensor_desc_get_index` $tensorDesc attr-dict `:` qualified(type($tensorDesc)) `,` type($result) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensorDesc` | #### Results: | Result | Description | | :----: | ----------- | | `result` | 64-bit unsigned integer ### `ascendc.tensor_desc_get_shape` (ascendc::TensorDescGetShapeOp) _Call `AscendC::GetShape` function_ Syntax: ``` operation ::= `ascendc.tensor_desc_get_shape` $tensorDesc `,` $offset attr-dict `:` qualified(type($tensorDesc)) `,` type($result) `,` type($offset) ``` Traits: `AscMemberFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensorDesc` | | `offset` | signless integer or index #### Results: | Result | Description | | :----: | ----------- | | `result` | signless integer or index ### `ascendc.tensor_desc_set_shape_addr` (ascendc::TensorDescSetShapeAddrOp) _Call `AscendC::TensorDesc::SetShapeAddr` method_ Syntax: ``` operation ::= `ascendc.tensor_desc_set_shape_addr` $tensorDesc `,` $shapePtr attr-dict `:` qualified(type($tensorDesc)) `,` qualified(type($shapePtr)) ``` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `tensorDesc` | | `shapePtr` | 64-bit unsigned integer ### `ascendc.to_que_bind` (ascendc::ToQueBindOp) _Obtain AscendC::TQueBind from its derivative class instances_ Syntax: ``` operation ::= `ascendc.to_que_bind` $source attr-dict `:` type($source) `,` qualified(type($result)) ``` Traits: `AlwaysSpeculatableImplTrait` Interfaces: `ConditionallySpeculatable`, `NoMemoryEffect (MemoryEffectOpInterface)` Effects: `MemoryEffects::Effect{}` #### Operands: | Operand | Description | | :-----: | ----------- | | `source` | base queue type #### Results: | Result | Description | | :----: | ----------- | | `result` | ### `ascendc.trans_data_to_5hd` (ascendc::TransDataTo5HDOp) _Call `AscendC::TransDataTo5HD` with LocalTensor_ Syntax: ``` operation ::= `ascendc.trans_data_to_5hd` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::TransDataTo5HD` is a data conversion operation. Interfaces: `APIOpInterface`, `DataConversionOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `params` | ### `ascendc.trans_data_to_5hd_tensor_list` (ascendc::TransDataTo5HDTensorListOp) _Call `AscendC::TransDataTo5HD` with LocalTensor lists_ Syntax: ``` operation ::= `ascendc.trans_data_to_5hd_tensor_list` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::TransDataTo5HD` is a data conversion operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `DataConversionOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dstList` | variadic of Local tensor from UB | `srcList` | variadic of Local tensor from UB | `params` | ### `ascendc.trans_data_to_5hd_uint_list` (ascendc::TransDataTo5HDUintListOp) _Call `AscendC::TransDataTo5HD` with uint64_t address lists_ Syntax: ``` operation ::= `ascendc.trans_data_to_5hd_uint_list` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::TransDataTo5HD` is a data conversion operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `DataConversionOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dstList` | variadic of unsigned integer | `srcList` | variadic of unsigned integer | `params` | ### `ascendc.transpose` (ascendc::TransposeOp) _Call `AscendC::Transpose` method (simple version)_ Syntax: ``` operation ::= `ascendc.transpose` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Transpose` is a data conversion operation. Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataConversionOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB ### `ascendc.transpose_ext` (ascendc::TransposeExtOp) _Call `AscendC::Transpose` method (extended version)_ Syntax: ``` operation ::= `ascendc.transpose_ext` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Transpose` is a data conversion operation. Traits: `AscFunc` Interfaces: `APIOpInterface`, `DataConversionOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `sharedTmpBuffer` | Local tensor from UB | `params` | ### `ascendc.trap` (ascendc::TrapOp) _Call `AscendC::Trap` function_ Syntax: ``` operation ::= `ascendc.trap` attr-dict ``` Interrupt AI Core execution in NPU mode, equivalent to assert in CPU mode Traits: `AscFunc` Interfaces: `APIOpInterface` ### `ascendc.trunc` (ascendc::TruncOp) _Call `AscendC::Trunc` function_ Syntax: ``` operation ::= `ascendc.trunc` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Trunc` is a unary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `UnaryMathOpInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ### `ascendc.wait_flag` (ascendc::WaitFlagOp) _Call `AscendC::WaitFlag` function_ Syntax: ``` operation ::= `ascendc.wait_flag` $event `,` $eventId attr-dict `:` type($eventId) ``` Interfaces: `APIOpInterface` #### Attributes:
AttributeMLIR TypeDescription
event::mlir::ascendc::HardEventAttr
allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35{{% markdown %}}Represents AscendC::HardEvent{{% /markdown %}}
#### Operands: | Operand | Description | | :-----: | ----------- | | `eventId` | any type ### `ascendc.wait_pre_block` (ascendc::WaitPreBlockOp) _Wait for the previous core to complete its operation._ Syntax: ``` operation ::= `ascendc.wait_pre_block` $gmWorkspace `,` $ubWorkspace attr-dict `:` type($gmWorkspace) `,` type($ubWorkspace) ``` Traits: `AscFunc` Interfaces: `APIOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `gmWorkspace` | Global tensor from GM (OUT) | `ubWorkspace` | Local tensor from UB ### `ascendc.whole_reduce_max_l0` (ascendc::WholeReduceMaxL0Op) _Call `AscendC::WholeReduceMax` function_ Syntax: ``` operation ::= `ascendc.whole_reduce_max_l0` operands attr-dict `:` qualified(type(operands)) ``` Whole reduce max operation with continuous mask (L0 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
order::mlir::ascendc::ReduceOrderAttr
reduce result order and behavior{{% markdown %}}Represents AscendC::ReduceOrder{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | any type | `repeatTime` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.whole_reduce_max_l1` (ascendc::WholeReduceMaxL1Op) _Call `AscendC::WholeReduceMax` function_ Syntax: ``` operation ::= `ascendc.whole_reduce_max_l1` operands attr-dict `:` qualified(type(operands)) ``` Whole reduce max operation with bit mask (L1 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
order::mlir::ascendc::ReduceOrderAttr
reduce result order and behavior{{% markdown %}}Represents AscendC::ReduceOrder{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | variadic of 64-bit unsigned integer | `repeatTime` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.whole_reduce_min_l0` (ascendc::WholeReduceMinL0Op) _Call `AscendC::WholeReduceMin` function_ Syntax: ``` operation ::= `ascendc.whole_reduce_min_l0` operands attr-dict `:` qualified(type(operands)) ``` Whole reduce min operation with continuous mask (L0 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
order::mlir::ascendc::ReduceOrderAttr
reduce result order and behavior{{% markdown %}}Represents AscendC::ReduceOrder{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | any type | `repeatTime` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.whole_reduce_min_l1` (ascendc::WholeReduceMinL1Op) _Call `AscendC::WholeReduceMin` function_ Syntax: ``` operation ::= `ascendc.whole_reduce_min_l1` operands attr-dict `:` qualified(type(operands)) ``` Whole reduce min operation with bit mask (L1 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
order::mlir::ascendc::ReduceOrderAttr
reduce result order and behavior{{% markdown %}}Represents AscendC::ReduceOrder{{% /markdown %}}
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | variadic of 64-bit unsigned integer | `repeatTime` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.whole_reduce_sum_l0` (ascendc::WholeReduceSumL0Op) _Call `AscendC::WholeReduceSum` function_ Syntax: ``` operation ::= `ascendc.whole_reduce_sum_l0` operands attr-dict `:` qualified(type(operands)) ``` Whole reduce sum operation with continuous mask (L0 API) Traits: `AscFunc` Interfaces: `APIOpInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | any type | `repeatTime` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.whole_reduce_sum_l1` (ascendc::WholeReduceSumL1Op) _Call `AscendC::WholeReduceSum` function_ Syntax: ``` operation ::= `ascendc.whole_reduce_sum_l1` operands attr-dict `:` qualified(type(operands)) ``` Whole reduce sum operation with bit mask (L1 API) Interfaces: `APIOpInterface`, `OpWithDstInterface`, `VectorOpInterface` #### Attributes:
AttributeMLIR TypeDescription
isSetMask::mlir::UnitAttrunit attribute
#### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src` | Local tensor from UB | `mask` | variadic of 64-bit unsigned integer | `repeatTime` | any type | `dstRepStride` | any type | `srcBlkStride` | any type | `srcRepStride` | any type ### `ascendc.xor` (ascendc::XorOp) _Call `AscendC::Xor` function_ Syntax: ``` operation ::= `ascendc.xor` operands attr-dict `:` qualified(type(operands)) ``` `AscendC::Xor` is a binary math library operation. Traits: `AttrSizedOperandSegments` Interfaces: `APIOpInterface`, `BinaryMathOpInterface`, `MathLibraryOpInterface`, `OpWithDstInterface`, `OpWithSrcInterface`, `VectorOpInterface` #### Operands: | Operand | Description | | :-----: | ----------- | | `dst` | Local tensor from UB | `src0` | any type | `src1` | any type | `sharedTmpBuffer` | any type | `calCount` | any type | `isReuseSource` | any type ## Attributes ### APIAttr Syntax: ``` #ascendc.api< StringAttr, # group StringAttr, # name StringAttr, # pipe_in StringAttr, # pipe_out ArrayAttr # args > ``` #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | group | `StringAttr` | | | name | `StringAttr` | | | pipe_in | `StringAttr` | | | pipe_out | `StringAttr` | | | args | `ArrayAttr` | | ### MatmulConfigAttr Syntax: ``` #ascendc.matmul_config< BoolAttr, # do_norm BoolAttr, # do_basic_block BoolAttr, # do_multi_data_load IntegerAttr, # basic_m IntegerAttr, # basic_n IntegerAttr, # basic_k BoolAttr, # intrinsics_check BoolAttr, # is_n_batch BoolAttr, # en_vec_nd2nz BoolAttr, # do_special_basic_block IntegerAttr, # do_mte2_preload IntegerAttr, # single_core_m IntegerAttr, # single_core_n IntegerAttr, # single_core_k IntegerAttr, # step_m IntegerAttr, # step_n IntegerAttr, # base_mn IntegerAttr, # single_core_mn BoolAttr, # en_unit_flag BoolAttr, # is_per_tensor BoolAttr, # has_anti_quant_offset BoolAttr, # do_ib_share_norm BoolAttr, # do_special_mdl BoolAttr, # enable_init IntegerAttr, # batch_mode BoolAttr, # enable_end BoolAttr, # enable_get_tensor_c BoolAttr, # enable_set_org_shape BoolAttr, # enable_set_bias BoolAttr, # enable_set_tail BoolAttr, # enable_quant_vector BoolAttr, # enable_set_define_data IntegerAttr, # iterate_mode BoolAttr, # enable_reuse BoolAttr, # enable_ub_reuse BoolAttr, # enable_l1_cache_ub BoolAttr, # intra_block_part_sum IntegerAttr, # iterate_order IntegerAttr, # schedule_type BoolAttr, # enable_double_cache BoolAttr, # is_bias_batch BoolAttr, # enable_static_pad_zeros BoolAttr, # is_partial_output BoolAttr, # enable_mix_dual_master BoolAttr, # is_a2b2_shared BoolAttr, # is_enable_channel_split BoolAttr, # enable_kdim_reorder_load BoolAttr, # is_co1_shared IntegerAttr, # shared_co1_buffer_size IntegerAttr # batch_out_mode > ``` #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | do_norm | `BoolAttr` | | | do_basic_block | `BoolAttr` | | | do_multi_data_load | `BoolAttr` | | | basic_m | `IntegerAttr` | | | basic_n | `IntegerAttr` | | | basic_k | `IntegerAttr` | | | intrinsics_check | `BoolAttr` | | | is_n_batch | `BoolAttr` | | | en_vec_nd2nz | `BoolAttr` | | | do_special_basic_block | `BoolAttr` | | | do_mte2_preload | `IntegerAttr` | | | single_core_m | `IntegerAttr` | | | single_core_n | `IntegerAttr` | | | single_core_k | `IntegerAttr` | | | step_m | `IntegerAttr` | | | step_n | `IntegerAttr` | | | base_mn | `IntegerAttr` | | | single_core_mn | `IntegerAttr` | | | en_unit_flag | `BoolAttr` | | | is_per_tensor | `BoolAttr` | | | has_anti_quant_offset | `BoolAttr` | | | do_ib_share_norm | `BoolAttr` | | | do_special_mdl | `BoolAttr` | | | enable_init | `BoolAttr` | | | batch_mode | `IntegerAttr` | | | enable_end | `BoolAttr` | | | enable_get_tensor_c | `BoolAttr` | | | enable_set_org_shape | `BoolAttr` | | | enable_set_bias | `BoolAttr` | | | enable_set_tail | `BoolAttr` | | | enable_quant_vector | `BoolAttr` | | | enable_set_define_data | `BoolAttr` | | | iterate_mode | `IntegerAttr` | | | enable_reuse | `BoolAttr` | | | enable_ub_reuse | `BoolAttr` | | | enable_l1_cache_ub | `BoolAttr` | | | intra_block_part_sum | `BoolAttr` | | | iterate_order | `IntegerAttr` | | | schedule_type | `IntegerAttr` | | | enable_double_cache | `BoolAttr` | | | is_bias_batch | `BoolAttr` | | | enable_static_pad_zeros | `BoolAttr` | | | is_partial_output | `BoolAttr` | | | enable_mix_dual_master | `BoolAttr` | | | is_a2b2_shared | `BoolAttr` | | | is_enable_channel_split | `BoolAttr` | | | enable_kdim_reorder_load | `BoolAttr` | | | is_co1_shared | `BoolAttr` | | | shared_co1_buffer_size | `IntegerAttr` | | | batch_out_mode | `IntegerAttr` | | ### SampleAttr Syntax: ``` #ascendc.sample< IntegerAttr # number > ``` #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | number | `IntegerAttr` | | ## Types ### AippChannelPaddingParamsType Syntax: `!ascendc.aipp_cpadding_params` Represents AscendC::AippChannelPaddingParams ### AippColorSpaceConvParamsType Syntax: `!ascendc.aipp_csc_params` Represents AscendC::AippColorSpaceConvParams ### AippDataTypeConvParamsType Syntax: `!ascendc.aipp_dtc_params` Represents AscendC::AippDataTypeConvParams ### AippInputFormatType Syntax: `!ascendc.aipp_input_format` Represents AscendC::AippInputFormat ### AippPaddingParamsType Syntax: `!ascendc.aipp_padding_params` Represents AscendC::AippPaddingParams ### AippParamsType Syntax: `!ascendc.aipp_params` Represents AscendC::AippParams ### AippSingleLineParamsType Syntax: `!ascendc.aipp_single_line_params` Represents AscendC::AippSingleLineParams ### AippSwapParamsType Syntax: `!ascendc.aipp_swap_params` Represents AscendC::AippSwapParams ### AscendQuantConfigType Syntax: `!ascendc.ascend_quant_config` Represents AscendC::AscendQuantConfig ### BaseGlobalTensorType Represents AscendC::BaseGlobalTensor #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | shape | `::llvm::ArrayRef` | | | elementType | `Type` | | ### BaseLocalTensorType Represents AscendC::BaseLocalTensor #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | shape | `::llvm::ArrayRef` | | | elementType | `Type` | | ### BatchModeType Syntax: `!ascendc.batch_mode` Represents BatchMode ### BatchOutModeType Syntax: `!ascendc.batch_out_mode` Represents BatchOutMode ### BinaryRepeatParamsType Syntax: `!ascendc.binary_repeat_params` Represents AscendC::BinaryRepeatParams ### BlockModeType Syntax: `!ascendc.block_mode` Represents AscendC::BlockMode ### BrcbRepeatParamsType Syntax: `!ascendc.brcb_repeat_params` Represents AscendC::BrcbRepeatParams ### BufAddrType Syntax: `!ascendc.buf_addr` Represents AscendC::TBuffAddr ### CO2LayoutType Syntax: `!ascendc.co2_layout` Represents AscendC::CO2Layout ### CheckLocalMemoryIAParamType Syntax: `!ascendc.check_local_memory_ia_param` Represents AscendC::CheckLocalMemoryIAParam ### CopyRepeatParamsType Syntax: `!ascendc.copy_repeat_params` Represents AscendC::CopyRepeatParams ### DataCopyCO12DstParamsType Syntax: `!ascendc.data_copy_co12dst_params` Represents AscendC::DataCopyCO12DstParams ### DataCopyEnhancedParamsType Syntax: `!ascendc.data_copy_enhanced_params` Represents AscendC::DataCopyEnhancedParams ### DataCopyExtParamsType Syntax: `!ascendc.data_copy_ext_params` Represents AscendC::DataCopyExtParams ### DataCopyPadExtParamsType Syntax: ``` !ascendc.data_copy_pad_ext_params< Type # elementType > ``` Represents AscendC::DataCopyPadExtParams #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | elementType | `Type` | | ### DataCopyPadParamsType Syntax: `!ascendc.data_copy_pad_params` Represents AscendC::DataCopyPadParams ### DataCopyParamsType Syntax: `!ascendc.data_copy_params` Represents AscendC::DataCopyParams ### DataFormatType Syntax: `!ascendc.data_format` Represents AscendC::DataFormat ### DeqScaleType Syntax: `!ascendc.deq_scale` Represents AscendC::DeqScale ### FixpipeConfigType Syntax: `!ascendc.fixpipe_config` Represents AscendC::FixpipeConfig ### FixpipeParamsType Syntax: ``` !ascendc.fixpipe_params< Type # type > ``` Represents AscendC::FixpipeParams #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | type | `Type` | | ### FixpipeParamsV220Type Syntax: `!ascendc.fixpipe_params_v220` Represents AscendC::FixpipeParamsV220 ### FmatrixModeType Syntax: `!ascendc.fmatrix_mode` Represents AscendC::FmatrixMode ### GatherMaskParamsType Syntax: `!ascendc.gather_mask_params` Represents AscendC::GatherMaskParams ### GatherRepeatParamsType Syntax: `!ascendc.gather_repeat_params` Represents AscendC::GatherRepeatParams ### GlobalTensorType Global tensor from GM (OUT) #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | shape | `::llvm::ArrayRef` | | | elementType | `Type` | | ### InitConstValueParamsType Syntax: `!ascendc.init_const_value_params` Represents AscendC::InitConstValueParams ### IsResetLoad3dConfigType Syntax: `!ascendc.is_reset_load_3d_config` Represents AscendC::IsResetLoad3dConfig ### IterateModeType Syntax: `!ascendc.iterate_mode` Represents IterateMode ### IterateOrderType Syntax: `!ascendc.iterate_order` Represents IterateOrder ### KfcServerType Syntax: `!ascendc.kfc_server` Represents AscendC::KfcServer ### ListTensorDescType Syntax: `!ascendc.list_tensor_desc` Represents AscendC::ListTensorDesc ### LoadData2DParamsType Syntax: `!ascendc.load_data_2d_params` Represents AscendC::LoadData2DParams ### LoadData2DParamsV2Type Syntax: `!ascendc.load_data_2d_params_v2` Represents AscendC::LoadData2DParamsV2 ### LoadData2dTransposeParamsType Syntax: `!ascendc.load_data_2d_transpose_params` Represents AscendC::LoadData2dTransposeParams ### LoadData2dTransposeParamsV2Type Syntax: `!ascendc.load_data_2d_transpose_params_v2` Represents AscendC::LoadData2dTransposeParamsV2 ### LoadData3DParamsV1Type Syntax: `!ascendc.load_data_3d_params_v1` Represents AscendC::LoadData3DParamsV1 ### LoadData3DParamsV2Type Syntax: `!ascendc.load_data_3d_params_v2` Represents AscendC::LoadData3DParamsV2 ### LoadData3DParamsV2ProType Syntax: `!ascendc.load_data_3d_params_v2_pro` Represents AscendC::LoadData3DParamsV2Pro ### LoadDataRepeatParamType Syntax: `!ascendc.load_data_repeat_param` Represents AscendC::LoadDataRepeatParam ### LoadImageToLocalParamsType Syntax: `!ascendc.load_image_to_local_params` Represents AscendC::LoadImageToLocalParams ### LocalMemAllocatorType Represents AscendC::LocalMemAllocator Syntax: ``` !ascendc.local_mem_allocator< uint64_t # hardware > ``` #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | hardware | `uint64_t` | | ### LocalTensorType Local tensor from UB #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | shape | `::llvm::ArrayRef` | | | elementType | `Type` | | ### MaskType Represents vector mask (bit mode) Syntax: `!ascendc.mask` ### MaskModeType Syntax: `!ascendc.mask_mode` Represents AscendC::MaskMode ### MatmulType Syntax: ``` !ascendc.matmul< TPositionAttr, # srcAPositionAttr CubeFormatAttr, # cubeFormatAAttr Type, # typeA bool, # isTransA LayoutModeAttr, # layoutModeAAttr TPositionAttr, # srcBPositionAttr CubeFormatAttr, # cubeFormatBAttr Type, # typeB bool, # isTransB LayoutModeAttr, # layoutModeBAttr TPositionAttr, # srcCPositionAttr CubeFormatAttr, # cubeFormatCAttr Type, # typeC bool, # isTransC LayoutModeAttr, # layoutModeCAttr TPositionAttr, # srcBiasPositionAttr CubeFormatAttr, # cubeFormatBiasAttr Type, # typeBias MatmulConfigAttr # matmulConfig > ``` Represents matmul::Matmul #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | srcAPositionAttr | `TPositionAttr` | | | cubeFormatAAttr | `CubeFormatAttr` | | | typeA | `Type` | | | isTransA | `bool` | | | layoutModeAAttr | `LayoutModeAttr` | | | srcBPositionAttr | `TPositionAttr` | | | cubeFormatBAttr | `CubeFormatAttr` | | | typeB | `Type` | | | isTransB | `bool` | | | layoutModeBAttr | `LayoutModeAttr` | | | srcCPositionAttr | `TPositionAttr` | | | cubeFormatCAttr | `CubeFormatAttr` | | | typeC | `Type` | | | isTransC | `bool` | | | layoutModeCAttr | `LayoutModeAttr` | | | srcBiasPositionAttr | `TPositionAttr` | | | cubeFormatBiasAttr | `CubeFormatAttr` | | | typeBias | `Type` | | | matmulConfig | `MatmulConfigAttr` | | ### MatmulApiStaticTilingType Syntax: `!ascendc.matmul_api_static_tiling` Represents MatmulApiStaticTiling ### MatmulConfigType Syntax: `!ascendc.matmul_config` Represents MatmulConfig ### MatrixOffsetType Syntax: `!ascendc.matrix_offset` Represents MatrixOffset ### MmadParamsType Syntax: `!ascendc.mmad_params` Represents AscendC::MmadParams ### MrgSort4InfoType Syntax: `!ascendc.mrg_sort4_info` Represents AscendC::MrgSort4Info ### MrgSortSrcListType Syntax: ``` !ascendc.mrg_sort_src_list< Type # elementType > ``` Represents AscendC::MrgSortSrcList #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | elementType | `Type` | | ### Nd2NzParamsType Syntax: `!ascendc.nd2nz_params` Represents AscendC::Nd2NzParams ### Nz2NdParamsType Syntax: `!ascendc.nz2nd_params` Represents AscendC::Nz2NdParams ### Nz2NdParamsFullType Syntax: `!ascendc.nz2nd_params_full` Represents AscendC::Nz2NdParamsFull ### PipeType Syntax: `!ascendc.pipe` Represents AscendC::TPipe ### QuantModesType Syntax: `!ascendc.quant_mode_t` Represents QuantMode_t ### QuantParamsType Syntax: `!ascendc.quant_params` Represents AscendC::QuantParams ### QueBindType Syntax: ``` !ascendc.que_bind< TPositionAttr, # srcPositionAttr TPositionAttr, # dstPositionAttr int64_t # depth > ``` Represents AscendC::TQueBind #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | srcPositionAttr | `TPositionAttr` | | | dstPositionAttr | `TPositionAttr` | | | depth | `int64_t` | | ### QueueType Syntax: ``` !ascendc.queue< TPositionAttr, # tPositionAttr int64_t # depth > ``` Represents AscendC::TQue #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | tPositionAttr | `TPositionAttr` | | | depth | `int64_t` | | ### ReduceOrderType Syntax: `!ascendc.reduce_order` Represents AscendC::ReduceOrder ### RmsNormTilingType Syntax: `!ascendc.rmsnorm_tiling` Represents RmsNormTiling ### ScheduleTypeType Syntax: `!ascendc.schedule_type` Represents ScheduleType ### ShapeInfoType Syntax: `!ascendc.shape_info` Represents AscendC::ShapeInfo ### SliceInfoType Syntax: `!ascendc.slice_info` Represents AscendC::SliceInfo ### SoftMaxShapeInfoType Syntax: `!ascendc.softmax_shape_info` Represents AscendC::SoftMaxShapeInfo ### SoftMaxTilingType Syntax: `!ascendc.softmax_tiling` Represents SoftMaxTiling ### TBufType Syntax: ``` !ascendc.tbuf< TPositionAttr # tPositionAttr > ``` Represents AscendC::TBuf #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | tPositionAttr | `TPositionAttr` | | ### TBufPoolType Syntax: ``` !ascendc.tbuf_pool< TPositionAttr, # tPositionAttr uint32_t # bufIDSize > ``` Represents AscendC::TBufPool #### Parameters: | Parameter | C++ type | Description | | :-------: | :-------: | ----------- | | tPositionAttr | `TPositionAttr` | | | bufIDSize | `uint32_t` | | ### TCubeTilingType Syntax: `!ascendc.cube_tiling` Represents TCubeTiling ### TensorDescType Syntax: `!ascendc.tensor_desc` Represents AscendC::TensorDesc ### TransDataTo5HDParamsType Syntax: `!ascendc.trans_data_to_5hd_params` Represents AscendC::TransDataTo5HDParams ### TransposeParamsExtType Syntax: `!ascendc.transpose_params_ext` Represents AscendC::TransposeParamsExt ### TransposeTypeType Syntax: `!ascendc.transpose_type` Represents AscendC::TransposeType ### UnaryRepeatParamsType Syntax: `!ascendc.unary_repeat_params` Represents AscendC::UnaryRepeatParams ### VdeqInfoType Syntax: `!ascendc.vdeq_info` Represents AscendC::VdeqInfo ### pad_tType Syntax: `!ascendc.pad_t` Represents AscendC::pad_t ## Enums ### AddressSpace allowed 32-bit signless integer cases: 0, 22, 23, 24, 25, 26, 27, 28 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | Default | `0` | Default | | gm | `22` | gm | | ca | `23` | ca | | cb | `24` | cb | | cc | `25` | cc | | ubuf | `26` | ubuf | | cbuf | `27` | cbuf | | fbuf | `28` | fbuf | ### AippInputFormat allowed 32-bit signless integer cases: 0, 1, 4, 9 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | YUV420SP_U8 | `0` | YUV420SP_U8 | | XRGB8888_U8 | `1` | XRGB8888_U8 | | RGB888_U8 | `4` | RGB888_U8 | | YUV400_U8 | `9` | YUV400_U8 | ### AtomicDtype allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | ATOMIC_NONE | `0` | atomic_none | | ATOMIC_F32 | `1` | atomic_f32 | | ATOMIC_F16 | `2` | atomic_f16 | | ATOMIC_S16 | `3` | atomic_s16 | | ATOMIC_S32 | `4` | atomic_s32 | | ATOMIC_S8 | `5` | atomic_s8 | | ATOMIC_BF16 | `6` | atomic_bf16 | ### AtomicOp allowed 32-bit signless integer cases: 0 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | ATOMIC_SUM | `0` | atomic_sum | ### BatchMode allowed 32-bit signless integer cases: 0, 1, 2, 3 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | NONE | `0` | NONE | | BATCH_LESS_THAN_L1 | `1` | BATCH_LESS_THAN_L1 | | BATCH_LARGE_THAN_L1 | `2` | BATCH_LARGE_THAN_L1 | | SINGLE_LARGE_THAN_L1 | `3` | SINGLE_LARGE_THAN_L1 | ### BatchOutMode allowed 32-bit signless integer cases: 0, 1, 2 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | SINGLE_BATCH | `0` | SINGLE_BATCH | | MULTI_BATCH | `1` | MULTI_BATCH | | DYNAMIC | `2` | DYNAMIC | ### CMPMODE allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | LT | `0` | LT | | GT | `1` | GT | | EQ | `2` | EQ | | LE | `3` | LE | | GE | `4` | GE | | NE | `5` | NE | ### CO2Layout allowed 32-bit signless integer cases: 0, 1, 2 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | NZ | `0` | NZ | | ROW_MAJOR | `1` | ROW_MAJOR | | COLUMN_MAJOR | `2` | COLUMN_MAJOR | ### CacheLine allowed 32-bit signless integer cases: 0, 1 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | SINGLE_CACHE_LINE | `0` | single_cache_line | | ENTIRE_DATA_CACHE | `1` | entire_data_cache | ### CacheMode allowed 32-bit signless integer cases: 0, 1 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | CACHE_MODE_DISABLE | `0` | CACHE_MODE_DISABLE | | CACHE_MODE_NORMAL | `1` | CACHE_MODE_NORMAL | ### CacheRwMode allowed 32-bit signless integer cases: 1, 2, 3 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | READ | `1` | READ | | WRITE | `2` | WRITE | | RW | `3` | RW | ### CopyDirection allowed 32-bit signless integer cases: 0, 1, 2, 3, 4 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | Unknown | `0` | Unknown | | gm_ubuf | `1` | gm_ubuf | | ubuf_gm | `2` | ubuf_gm | | ubuf_ubuf | `3` | ubuf_ubuf | | gm_gm | `4` | gm_gm | ### CubeFormat matmul tensor format #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | ND | `0` | nd | | NZ | `1` | nz | | ZN | `2` | zn | | ZZ | `3` | zz | | NN | `4` | nn | | ND_ALIGN | `5` | nd_align | | SCALAR | `6` | scalar | | VECTOR | `7` | vector | ### DcciDst allowed 32-bit signless integer cases: 0, 1, 2, 3 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | CACHELINE_ALL | `0` | cacheline_all | | CACHELINE_UB | `1` | cacheline_ub | | CACHELINE_OUT | `2` | cacheline_out | | CACHELINE_ATOMIC | `3` | cacheline_atomic | ### FmatrixMode allowed 32-bit signless integer cases: 0, 1 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | FMATRIX_LEFT | `0` | fmatrix_left | | FMATRIX_RIGHT | `1` | fmatrix_right | ### GatherMaskMode allowed 32-bit signless integer cases: 0 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | DEFAULT | `0` | default | ### HardEvent allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | MTE2_MTE1 | `0` | mte2_mte1 | | MTE1_MTE2 | `1` | mte1_mte2 | | MTE1_M | `2` | mte1_m | | M_MTE1 | `3` | m_mte1 | | MTE2_V | `4` | mte2_v | | V_MTE2 | `5` | v_mte2 | | MTE3_V | `6` | mte3_v | | V_MTE3 | `7` | v_mte3 | | M_V | `8` | m_v | | V_M | `9` | v_m | | V_V | `10` | v_v | | MTE3_MTE1 | `11` | mte3_mte1 | | MTE1_MTE3 | `12` | mte1_mte3 | | MTE1_V | `13` | mte1_v | | MTE2_M | `14` | mte2_m | | M_MTE2 | `15` | m_mte2 | | V_MTE1 | `16` | v_mte1 | | M_FIX | `17` | m_fix | | FIX_M | `18` | fix_m | | MTE3_MTE2 | `19` | mte3_mte2 | | MTE2_MTE3 | `20` | mte2_mte3 | | S_V | `21` | s_v | | V_S | `22` | v_s | | S_MTE2 | `23` | s_mte2 | | MTE2_S | `24` | mte2_s | | S_MTE3 | `25` | s_mte3 | | MTE3_S | `26` | mte3_s | | MTE2_FIX | `27` | mte2_fix | | FIX_MTE2 | `28` | fix_mte2 | | FIX_S | `29` | fix_s | | M_S | `30` | m_s | | FIX_MTE3 | `31` | fix_mte3 | | MTE1_FIX | `32` | mte1_fix | | FIX_MTE1 | `33` | fix_mte1 | | FIX_FIX | `34` | fix_fix | | MAX | `35` | max | ### Hardware Hardware memory location #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | GM | `0` | gm | | UB | `1` | ub | | L1 | `2` | l1 | | L0A | `3` | l0a | | L0B | `4` | l0b | | L0C | `5` | l0c | | BIAS | `6` | bias | | FIXBUF | `7` | fixbuf | | MAX | `8` | max | ### IterateMode allowed 32-bit signless integer cases: 1, 2, 4, 8, 255 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | ITERATE_MODE_NORMAL | `1` | ITERATE_MODE_NORMAL | | ITERATE_MODE_ALL | `2` | ITERATE_MODE_ALL | | ITERATE_MODE_BATCH | `4` | ITERATE_MODE_BATCH | | ITERATE_MODE_N_BATCH | `8` | ITERATE_MODE_N_BATCH | | ITERATE_MODE_DEFAULT | `255` | ITERATE_MODE_DEFAULT | ### IterateOrder allowed 32-bit signless integer cases: 0, 1, 2 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | ORDER_M | `0` | ORDER_M | | ORDER_N | `1` | ORDER_N | | UNDEF | `2` | UNDEF | ### LayoutMode matmul tensor layout #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | NONE | `0` | none | | NORMAL | `1` | normal | | BSNGD | `2` | bsngd | | SBNGD | `3` | sbngd | | BNGS1S2 | `4` | bngs1s2 | ### MaskMode allowed 32-bit signless integer cases: 0, 1 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | NORMAL | `0` | NORMAL | | COUNTER | `1` | COUNTER | ### MatmulPolicy allowed 32-bit signless integer cases: 0, 1, 2, 3 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | MatmulPolicy | `0` | MatmulPolicy | | TrianUpperMatmulPolicy | `1` | TrianUpperMatmulPolicy | | TrianLowerMatmulPolicy | `2` | TrianLowerMatmulPolicy | | NBuffer33MatmulPolicy | `3` | NBuffer33MatmulPolicy | ### MemDsbT allowed 32-bit signless integer cases: 0, 1, 2, 3 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | ALL | `0` | all | | DDR | `1` | ddr | | UB | `2` | ub | | SEQ | `3` | seq | ### Pipe allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | PIPE_S | `0` | pipe_s | | PIPE_V | `1` | pipe_v | | PIPE_M | `2` | pipe_m | | PIPE_MTE1 | `3` | pipe_mte1 | | PIPE_MTE2 | `4` | pipe_mte2 | | PIPE_MTE3 | `5` | pipe_mte3 | | PIPE_ALL | `6` | pipe_all | | PIPE_MTE4 | `7` | pipe_mte4 | | PIPE_MTE5 | `8` | pipe_mte5 | | PIPE_V2 | `9` | pipe_v2 | | PIPE_FIX | `10` | pipe_fix | ### QuantMode allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | NoQuant | `0` | no_quant | | F322F16 | `1` | f322f16 | | VQF322HIF8_PRE | `2` | vqf322hif8_pre | | QF322HIF8_PRE | `3` | qf322hif8_pre | | VQF322HIF8_PRE_HYBRID | `4` | vqf322hif8_pre_hybrid | | QF322HIF8_PRE_HYBRID | `5` | qf322hif8_pre_hybrid | | AttachF16Mul | `6` | attachf16mul | | VREQ8 | `8` | vreq8 | | REQ8 | `9` | req8 | | VDEQF16 | `10` | vdeqf16 | | DEQF16 | `11` | deqf16 | | VQF322FP8_PRE | `12` | vqf322fp8_pre | | QF322FP8_PRE | `13` | qf322fp8_pre | | VQF322F32_PRE | `14` | vqf322f32_pre | | QF322F32_PRE | `15` | qf322f32_pre | | F322BF16 | `16` | f322bf16 | | VQF162B8_PRE | `17` | vqf162b8_pre | | QF162B8_PRE | `18` | qf162b8_pre | | VQF162S4_PRE | `19` | vqf162s4_pre | | QF162S4_PRE | `20` | qf162s4_pre | | VREQ4 | `21` | vreq4 | | REQ4 | `22` | req4 | | VQF322B8_PRE | `23` | vqf322b8_pre | | QF322B8_PRE | `24` | qf322b8_pre | | VQF322S4_PRE | `25` | vqf322s4_pre | | QF322S4_PRE | `26` | qf322s4_pre | | VDEQS16 | `27` | vdeqs16 | | DEQS16 | `28` | deqs16 | | VQF162S16_PRE | `29` | vqf162s16_pre | | QF162S16_PRE | `30` | qf162s16_pre | | VQF322F16_PRE | `31` | vqf322f16_pre | | QF322F16_PRE | `32` | qf322f16_pre | | VQF322BF16_PRE | `33` | vqf322bf16_pre | | QF322BF16_PRE | `34` | qf322bf16_pre | | VQS322BF16_PRE | `35` | vqs322bf16_pre | | QS322BF16_PRE | `36` | qs322bf16_pre | ### ReduceOrder reduce result order and behavior #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | ORDER_VALUE_INDEX | `0` | order_value_index | | ORDER_INDEX_VALUE | `1` | order_index_value | | ORDER_ONLY_VALUE | `2` | order_only_value | | ORDER_ONLY_INDEX | `3` | order_only_index | ### ReducePattern allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | R | `0` | R | | AR | `1` | AR | | RA | `2` | RA | | ARA | `3` | ARA | | ARAR | `4` | ARAR | | ARARA | `5` | ARARA | | ARARAR | `6` | ARARAR | | ARARARA | `7` | ARARARA | | ARARARAR | `8` | ARARARAR | | ARARARARA | `9` | ARARARARA | | RAR | `10` | RAR | | RARA | `11` | RARA | | RARAR | `12` | RARAR | | RARARA | `13` | RARARA | | RARARAR | `14` | RARARAR | | RARARARA | `15` | RARARARA | ### RoundMode allowed 32-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | CAST_NONE | `0` | CAST_NONE | | CAST_RINT | `1` | CAST_RINT | | CAST_FLOOR | `2` | CAST_FLOOR | | CAST_CEIL | `3` | CAST_CEIL | | CAST_ROUND | `4` | CAST_ROUND | | CAST_TRUNC | `5` | CAST_TRUNC | | CAST_ODD | `6` | CAST_ODD | ### ScheduleType allowed 32-bit signless integer cases: 0, 1 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | INNER_PRODUCT | `0` | INNER_PRODUCT | | OUTER_PRODUCT | `1` | OUTER_PRODUCT | ### SELMODE allowed 32-bit signless integer cases: 0, 1, 2 #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | VSEL_CMPMASK_SPR | `0` | VSEL_CMPMASK_SPR | | VSEL_TENSOR_SCALAR_MODE | `1` | VSEL_TENSOR_SCALAR_MODE | | VSEL_TENSOR_TENSOR_MODE | `2` | VSEL_TENSOR_TENSOR_MODE | ### TPosition queue/buffer position #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | GM | `0` | gm | | A1 | `1` | a1 | | A2 | `2` | a2 | | B1 | `3` | b1 | | B2 | `4` | b2 | | C1 | `5` | c1 | | C2 | `6` | c2 | | CO1 | `7` | co1 | | CO2 | `8` | co2 | | VECIN | `9` | vecin | | VECOUT | `10` | vecout | | VECCALC | `11` | veccalc | | MAX | `12` | max | ### TransposeType Transpose type. #### Cases: | Symbol | Value | String | | :----: | :---: | ------ | | TRANSPOSE_TYPE_NONE | `0` | TRANSPOSE_TYPE_NONE | | TRANSPOSE_NZ2ND_0213 | `1` | TRANSPOSE_NZ2ND_0213 | | TRANSPOSE_NZ2NZ_0213 | `2` | TRANSPOSE_NZ2NZ_0213 | | TRANSPOSE_NZ2NZ_012_WITH_N | `3` | TRANSPOSE_NZ2NZ_012_WITH_N | | TRANSPOSE_NZ2ND_012_WITH_N | `4` | TRANSPOSE_NZ2ND_012_WITH_N | | TRANSPOSE_NZ2ND_012_WITHOUT_N | `5` | TRANSPOSE_NZ2ND_012_WITHOUT_N | | TRANSPOSE_NZ2NZ_012_WITHOUT_N | `6` | TRANSPOSE_NZ2NZ_012_WITHOUT_N | | TRANSPOSE_ND2ND_ONLY | `7` | TRANSPOSE_ND2ND_ONLY | | TRANSPOSE_ND_UB_GM | `8` | TRANSPOSE_ND_UB_GM | | TRANSPOSE_GRAD_ND_UB_GM | `9` | TRANSPOSE_GRAD_ND_UB_GM | | TRANSPOSE_ND2ND_B16 | `10` | TRANSPOSE_ND2ND_B16 | | TRANSPOSE_NCHW2NHWC | `11` | TRANSPOSE_NCHW2NHWC | | TRANSPOSE_NHWC2NCHW | `12` | TRANSPOSE_NHWC2NCHW |