Skip to content

ValueFactory attempted to access the Value property of this instance #398

Closed

Description

@Oceania2018

Got error when I run CNN Text Classification example.

System.TypeInitializationException: The type initializer for 'Tensorflow.Keras.backend' threw an exception. ---> System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance.
   at System.Threading.ThreadLocal`1.GetValueSlow()
   at Tensorflow.tensorflow.get_defaultSession() in D:\SciSharp\TensorFlow.NET\src\TensorFlowNET.Core\tensorflow.cs:line 46
   at Tensorflow.Keras.backend..cctor() in D:\SciSharp\TensorFlow.NET\src\TensorFlowNET.Core\Keras\backend.cs:line 31
   --- End of inner exception stack trace ---
   at Tensorflow.Keras.Utils.base_layer_utils.get_default_graph_uid_map() in D:\SciSharp\TensorFlow.NET\src\TensorFlowNET.Core\Keras\Utils\base_layer_utils.cs:line 113
   at Tensorflow.Keras.Utils.base_layer_utils.unique_layer_name(String name, Dictionary`2 name_uid_map, String[] avoid_names, String namespace, Boolean zero_based) in D:\SciSharp\TensorFlow.NET\src\TensorFlowNET.Core\Keras\Utils\base_layer_utils.cs:line 78

You can set a break point at public static Dictionary<(string, string), int> get_default_graph_uid_map().

Activity

  1. added
    bug
    on Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions