1,模型转换atc模型转换
模型转换如图
参考链接如下:
https://toscode.mulanos.cn/ascend/samples/tree/master/inference/modelInference/sampleResnetQuickStart/cpp
2,推理运行,这里需要注意用到了infer,有点类似的pytorch对模型的加载使用
model = InferSession(0, model_path)
参考链接1:
参考链接2:
3,有人用下面的代码进行推理,没看懂是用的哪个库
print("Loading model %s" % o