GetArgsFormat
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File
#include <graph/kernel_launch_info.h>
Function Usage
Obtains the ArgsFormat value of an operator.
Prototype
1 | const char *GetArgsFormat() const |
Parameters
None
Returns
Operator's ArgsFormat value on success.
nullptr on failure.
Constraints
ArgsFormat values can be obtained only for AI CPU and AI Core tasks.
Examples
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); ... } |
Parent topic: KernelLaunchInfo