用torch_npu进行模型推理报错:
{"detail":"[address=172.16.1.149:45389, pid=157774] getDevice:torch_npu/csrc/aten/common/CopyKernel.cpp:41 NPU error, error code is 107002\n[Error]: The context is empty.\n Check whether acl.rt.set_context or acl.rt.set_device is called.\nEE1001: [PID: 157774] 2024-12-25-14:26:03.031.522 The argument is invalid.Reason: rtGetDevMsg execute failed, reason=[context pointer null]\n Solution: 1.Check the input parameter range of the function. 2.Check the function invocation relationship.\n TraceBack (most recent call last):\n ctx is NULL![FUNC:GetDevErrMsg][FILE:api_impl.cc][LINE:5315]\n The argument is invalid.Reason: rtGetDevMsg execute failed, reason=[context pointer null]\n"}
用torch_npu进行模型推理报错:
{"detail":"[address=172.16.1.149:45389, pid=157774] getDevice:torch_npu/csrc/aten/common/CopyKernel.cpp:41 NPU error, error code is 107002\n[Error]: The context is empty.\n Check whether acl.rt.set_context or acl.rt.set_device is called.\nEE1001: [PID: 157774] 2024-12-25-14:26:03.031.522 The argument is invalid.Reason: rtGetDevMsg execute failed, reason=[context pointer null]\n Solution: 1.Check the input parameter range of the function. 2.Check the function invocation relationship.\n TraceBack (most recent call last):\n ctx is NULL![FUNC:GetDevErrMsg][FILE:api_impl.cc][LINE:5315]\n The argument is invalid.Reason: rtGetDevMsg execute failed, reason=[context pointer null]\n"}