Closed
Description
[TestMethod]
public void Add()
{
var x = tf.Variable(10, name: "x");
var model = tf.global_variables_initializer();
using (var session = tf.Session())
{
var sm = session.run(model);
for(int i = 0; i < 5; i++)
{
var x1 = x + 1;
var result = session.run(x1);
print(result);
}
}
}
The unit test above throws exception:
Attempting to use uninitialized value x [[{{node x/read}}]]