mirror of
https://github.com/yalue/onnxruntime_go.git
synced 2025-11-02 21:34:01 +08:00
Add tensor support
- There is now a wrapper to create generic Tensor objects in Go, that should be appropriately backed by the onnxruntime. - Did some minor tests. - Still to do: update the example, and put together a nice API that uses the tensors.
This commit is contained in:
@@ -13,7 +13,11 @@ func run() int {
|
||||
if runtime.GOOS == "windows" {
|
||||
onnxruntime.SetSharedLibraryPath("../test_data/onnxruntime.dll")
|
||||
} else {
|
||||
onnxruntime.SetSharedLibraryPath("../test_data/onnxruntime.so")
|
||||
if runtime.GOARCH == "arm64" {
|
||||
onnxruntime.SetSharedLibraryPath("../test_data/onnxruntime_arm64.so")
|
||||
} else {
|
||||
onnxruntime.SetSharedLibraryPath("../test_data/onnxruntime.so")
|
||||
}
|
||||
}
|
||||
e := onnxruntime.InitializeEnvironment()
|
||||
if e != nil {
|
||||
|
||||
Reference in New Issue
Block a user