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
2023-03-11 16:10:46.326691: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructio
ns in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Tensorflow._FetchMapper.for_fetch(Object fetch, Graph graph)
at Tensorflow._FetchHandler..ctor(Graph graph, Object fetches, Dictionary`2 feeds, Action feed_handles)
at Tensorflow.BaseSession._run(Object fetches, FeedItem[] feed_dict)
at Tensorflow.BaseSession.run(Operation op, FeedItem[] feed_dict)
at Program.<Main>$(String[] args) in ....
Reproduction Steps
var x = tf.Variable(10, name: "x");
using (var session = tf.Session())
{
session.run(x.initializer);
var result = session.run(x);
Console.Write(result); // should be 10
}
Description
I tried the variable example on https://tensorflownet.readthedocs.io/en/latest/Variable.html
But it throws the following exception:
Reproduction Steps
Known Workarounds
No response
Configuration and Other Information
csproj:
The text was updated successfully, but these errors were encountered: