EE1001: The argument is invalid.Reason: rtMalloc execute failed, reason=[context pointer null]
Solution: 1.Check the input parameter range of the function. 2.Check the function invocation relationship.
TraceBack (most recent call last):
ctx is NULL![FUNC:DevMalloc][FILE:api_impl.cc][LINE:1212]
The argument is invalid.Reason: rtMalloc execute failed, reason=[context pointer null]
alloc device memory failed, runtime result = 107002[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
ctx is NULL![FUNC:GetDevErrMsg][FILE:api_impl.cc][LINE:4146]
The argument is invalid.Reason: rtGetDevMsg execute failed, reason=[context pointer null]
[107002][Error code unknown] Malloc ptrData failed.[ERROR] MemoryHelper::MxbsMalloc failed device size:4915200 ret:2
[ERROR] Check i:0 name:input_image in size:2 needsize:4915200 not match
[ERROR] Check InVector failed ret:-1
本地测试推理顺利完成,restapi 推理后却报错:
EE1001: The argument is invalid.Reason: rtMalloc execute failed, reason=[context pointer null] Solution: 1.Check the input parameter range of the function. 2.Check the function invocation relationship. TraceBack (most recent call last): ctx is NULL![FUNC:DevMalloc][FILE:api_impl.cc][LINE:1212] The argument is invalid.Reason: rtMalloc execute failed, reason=[context pointer null] alloc device memory failed, runtime result = 107002[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] ctx is NULL![FUNC:GetDevErrMsg][FILE:api_impl.cc][LINE:4146] The argument is invalid.Reason: rtGetDevMsg execute failed, reason=[context pointer null] [107002][Error code unknown] Malloc ptrData failed.[ERROR] MemoryHelper::MxbsMalloc failed device size:4915200 ret:2 [ERROR] Check i:0 name:input_image in size:2 needsize:4915200 not match [ERROR] Check InVector failed ret:-1对照本地推理测试和restapi的相关代码,模型加载,数据输入格式对应等未发现区别,求助论坛大佬,可能是什么原因?