打开微信,使用扫一扫进入页面后,点击右上角菜单,
点击“发送给朋友”或“分享到朋友圈”完成分享
MLU100上的源码:
cnrtMallocBatchByDescArray(&inputMluPtrS, inferencer_->inDescs(),
inferencer_->inBlobNum(),
inferencer_->dataParallel());
make之后,MLU220上的报错:
error: 'cnrtMallocBatchByDescArray' was not declared in this scope
inferencer_->dataParallel(), CNRT_MEM_TRANS_DIR_HOST2DEV));
同理:
cnrtGetInputDataDesc' was not declared in this scope
cnrtGetInputDataDesc(&inDescs_, &inBlobNum_, function_);
error: 'cnrtGetOutputDataDesc' was not declared in this scope
cnrtGetOutputDataDesc(&outDescs_, &outBlobNum_, function_);
error: 'cnrtGetHostDataCount' was not declared in this scope
cnrtGetHostDataCount(desc, &in_count);
error: 'cnrtGetDataShape' was not declared in this scope
cnrtGetDataShape(desc, &inN, &inC, &inH, &inW);
error: 'cnrtInitFuncParam_t' was not declared in this scope
cnrtInitFuncParam_t initFuncParam;
这些未定义的API名称同样存在错误。
热门帖子
精华帖子