gomindsporelite

module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: Apache-2.0

README

go-MindSporeLite MindSporeLite 的golang绑定

使用

引入

go get gitee.com/jinzhongmin/gomindsporelite/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

Path Synopsis
example
pkg
ms

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL