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
g:=NewGraph()
xV, _:= tensor.New(tensor.WithBacking([]float64{1,2,3,4})
yV, _:= tensor.New(tensor.WithBacking([]float64{1,2,3,4})
x:=NodeFromAny(g, xV, WithName("x")) // note the WithName()y:=NodeFromAny(g, yV, WithName("y")) // note the WithName()
which will yield this:
While it is in fact the correct thing to do (i.e. optimize away and leave with with only one node), this is not user friendly (this bug was encountered by a new user).
Solutions
Either one of these
Document such behaviours.
Add an exception for NodeFromAny to not use newUniqueNode.
Status
Thinking.
The text was updated successfully, but these errors were encountered:
This graph:
yields this:
This can be fixed of course, with this:
which will yield this:
While it is in fact the correct thing to do (i.e. optimize away and leave with with only one node), this is not user friendly (this bug was encountered by a new user).
Solutions
Either one of these
NodeFromAny
to not usenewUniqueNode
.Status
Thinking.
The text was updated successfully, but these errors were encountered: