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
I was showing that in tfgo when one assigns a go variable to another go variable it needs to "clone" it before the assignment in order to create a different and new node in the graph.
Otherwise, the assignment only exists in Go but the underlying reference points to the same node in the graph.
(In short, I was showing how to use tf.assing and not the assignment operator of the lanuage used).
To empathize this, I'd like to show that those 2 Go variables when evaluated contain the same value.
But I can't because of that bug, thus I fallback showing it in another way. The first example here: https://github.com/galeone/tfgo#getting-started
Problem
In Go, when we pass the same node to the
fetches
list more then once SIGABRT is raised.Source code / logs
Here's the output:
The same logic, in python, works without any issue:
outputs
as expected.
System information
go test
The text was updated successfully, but these errors were encountered: