huawei-noah / bolt

Bolt is a deep learning library with high performance and heterogeneous flexibility.
https://huawei-noah.github.io/bolt/
MIT License
910 stars 158 forks source link

bolt编译后能在visual studio导入使用吗? #58

Open carter54 opened 3 years ago

yuxianzhi commented 2 years ago

Bolt windows编译输出的lib文件夹下会有*.lib后缀的文件,可以在vs中导入使用

carter54 commented 2 years ago

image 导入的时候报了一些错。。

yuxianzhi commented 2 years ago

你好,看起来现在是在用C++ API,你可以导入bolt.lib,然后用C API头文件inference/engine/api/c/bolt.h

carter54 commented 2 years ago

@yuxianzhi 多谢回复~ 如果用bolt.h,是指代码里的c++的API都要换成C的API吗? 比如creatPipeline要换成CreateModel ?

yuxianzhi commented 2 years ago

是的,可以参考以下用法https://github.com/huawei-noah/bolt/tree/master/inference/examples/c_api

carter54 commented 2 years ago

@yuxianzhi 好的 谢谢~