SetHiddenInputSubType
产品支持情况
|
产品 |
是否支持 |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
头文件
/include/graph/arg_desc_info.h
功能说明
设置ArgDescInfo的隐藏输入地址的类型,只有type为kHiddenInput时,才能设置成功。
函数原型
1
|
graphStatus SetHiddenInputSubType(HiddenInputSubType hidden_type) |
参数说明
|
参数 |
输入/输出 |
说明 |
|---|---|---|
|
hidden_type |
输入 |
隐藏输入的类型。 |
约束说明
无
调用示例
1 2 3 4 5 6 7 8 9 10 11 12 |
graphStatus Mc2GenTaskCallback(const gert::ExeResGenerationContext *context, std::vector<std::vector<uint8_t>> &tasks) { ... // 设置AI CPU任务 auto aicpu_task = KernelLaunchInfo::CreateAicpuKfcTask(context, "libccl_kernel.so", "RunAicpuKfcSrvLaunch"); std::vector<ArgDescInfo> aicpu_args_format; ArgDescInfo args_info(ArgDescType::kHiddenInput); args_info.SetHiddenInputSubType(HiddenInputSubType::kHcom); aicpu_args_format.emplace_back(args_info); ... } |
父主题: ArgDescInfo