GetBlockDim
产品支持情况
产品 |
是否支持 |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
头文件
/include/graph/kernel_launch_info.h
功能说明
获取算子BlockDim。
函数原型
1 | uint32_t GetBlockDim() const |
参数说明
无
返回值说明
返回此算子Task的BlockDim值,默认值为0。
异常时返回int32_max。
约束说明
无
调用示例
1 2 3 4 5 6 7 | graphStatus Mc2GenTaskCallback(const gert::ExeResGenerationContext *context, std::vector<std::vector<uint8_t>> &tasks) { ... auto aicore_task = KernelLaunchInfo::LoadFromData(context, tasks.back()); auto block_dim = aicore_task.GetBlockDim(); ... } |
父主题: KernelLaunchInfo