You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
_ "embed"
"fmt"
"github.com/owulveryck/onnx-go"
"github.com/owulveryck/onnx-go/backend/x/gorgonnx"
)
//go:embed model/ch_ppocr_mobile_v2.0_cls_infer.onnx
var gModelData []byte
func main() {
// Create a backend receiver
backend := gorgonnx.NewGraph()
//backend := simple.NewSimpleGraph()
// Create a model and set the execution backend
model := onnx.NewModel(backend)
// read the onnx model
// Decode it into the model
err := model.UnmarshalBinary(gModelData)
if err != nil {
panic(err)
}
fmt.Println(model.Input, model.Output)
}
The text was updated successfully, but these errors were encountered: