获取算子的ArgsFormat。
1 | const char *GetArgsFormat() const |
无
成功时返回算子的ArgsFormat。
失败时,返回nullptr。
只有AI CPU和AI Core类型的任务能获取到ArgsFormat。
1 2 3 4 5 6 7 8 | graphStatus Mc2GenTaskCallback(const gert::ExeResGenerationContext *context, std::vector<std::vector<uint8_t>> &tasks) { ... auto aicore_task = KernelLaunchInfo::LoadFromData(context, tasks.back()); auto aicore_args_format_str = aicore_task.GetArgsFormat(); auto aicore_args_format = ArgsFormatSerializer::Deserialize(aicore_args_format_str); ... } |