Patent ID: 11954204
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method, comprising:
receiving, by a central processing unit (CPU) of an artificial intelligence (AI) processing apparatus, an AI processing request, wherein the AI processing apparatus comprises a hardware layer including an AI processor and the CPU, wherein the AI processor is a neural processing unit (NPU) or a graphics processing unit (GPU), wherein each of the CPU and the AI processor has at least two working modes and can switch between the at least two working modes, and wherein security of the at least two working modes is different;
determining, by the CPU, a target mode corresponding to the AI processing request, wherein the target mode is one of the at least two working modes, wherein the AI processing request includes information for AI processing, and wherein the target mode of the AI processor is determined based on the information for AI processing corresponding to the target mode;
executing, by the CPU, a security policy corresponding to the target mode; and
processing, by the AI processor, the AI processing request in the target mode.