CPC G06T 1/20 (2013.01) [G06T 1/60 (2013.01); G06T 3/40 (2013.01); G06T 7/40 (2013.01)] | 20 Claims |
1. A model inference method based on a graphics rendering pipeline, comprising:
obtaining an instruction stream in a render thread;
extracting and saving texture data information from the instruction stream, wherein the texture data information comprises texture data; and
inputting the texture data information to a graphics processing unit (GPU) rendering pipeline, wherein the GPU rendering pipeline performs GPU model-based inference on the texture data based on a GPU model to obtain an inference result of the texture data, and the GPU model is a model running in a GPU,
wherein the method further comprises:
before inputting the texture data information to the GPU rendering pipeline, obtaining and saving an ID of a texture in an activated state; and
obtaining the inference result by using the render thread, wherein the inference result is saved in a texture data format.
|