-
-
Notifications
You must be signed in to change notification settings - Fork 69
Gorgonia backend does not handle model with several root nodes #48
Comments
I am changing the title of this issue; I have created a "project" to follow the implementation steps to make the SSD model working. Note: I have analyzed the model, and it will require a lot of effort to make it work with gorgonia. |
There is a work-in-progress with the branch issue-48 but it needs some more investigation. The actual design of "gorgonnx" does not handle operators with multiple output. the signature of the apply method will probably require some changes: type operator interface {
// apply analyse the graph to find the children of the node
// then extract its gorgonia.Node references
// and assign the result of the operation to the node n
apply(g *Graph, n *Node) error
// init the operator with name and attributes as carried by the onnx.Operator
init(o onnx.Operation) error
} |
PR #115 fixes this error, but it introduces a breaking change. Lines 19 to 27 in f9baf80
This will require to change any backend implementation. |
Is your feature request related to a problem? Please describe.
I'm trying to run ssd using onnx-go. But error occured.
https://gist.github.com/mattn/f5aa1b96753c76075f2666235919a8f3
Describe the solution you'd like
As far as I looked code backend/x/gorgonnx, the error seems occur at here:
onnx-go/backend/x/gorgonnx/graph.go
Lines 59 to 61 in 2f00eed
Describe alternatives you've considered
Sorry, I can't figure out what should do here.
The text was updated successfully, but these errors were encountered: