module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Nov 22, 2022
License: Apache-2.0
Opens a new window with license information.
README
¶
go-MindSporeLite MindSporeLite 的golang绑定
使用
引入
go get gitee.com/jinzhongmin/go-MindSporeLite/pkg/ms
使用
ctx := ms.NewContext() //初始化context
详细文档请参考 MindSporeLite 文档
编译,
go build
需要注意,MindSporeLite 没有静态库,所有是动态链接,需要把相应动态库放到编译目录下才能执行编译出的二进制文件,需要的动态库如下:
- 3rdparty\mindspore-lite-1.9.0-win-x64\runtime\lib\libmindspore-lite.dll
- 3rdparty\mindspore-lite-1.9.0-win-x64\runtime\third_party\glog\libmindspore_glog.dll
- 3rdparty\mindspore-lite-1.9.0-win-x64\tools\converter\lib\libmslite_converter_plugin.dll
- 3rdparty\mindspore-lite-1.9.0-win-x64\tools\converter\lib\libmslite_converter_plugin.dll
例子请参考 example 目录下的 yolov5
Directories
¶
example
|
|
|
|
pkg
|
|
|
|
Click to show internal directories.
Click to hide internal directories.