diff --git a/graph/xor.meta b/graph/xor.meta index 4406153b..f466e49a 100644 Binary files a/graph/xor.meta and b/graph/xor.meta differ diff --git a/test/TensorFlowNET.Examples/NeuralNetXor.cs b/test/TensorFlowNET.Examples/NeuralNetXor.cs index ea6a10a5..31b2ddd3 100644 --- a/test/TensorFlowNET.Examples/NeuralNetXor.cs +++ b/test/TensorFlowNET.Examples/NeuralNetXor.cs @@ -66,8 +66,8 @@ namespace TensorFlowNET.Examples tf.train.import_meta_graph("graph/xor.meta"); - var features = graph.get_operation_by_name("Placeholder"); - var labels = graph.get_operation_by_name("Placeholder_1"); + Tensor features = graph.get_operation_by_name("Placeholder"); + Tensor labels = graph.get_operation_by_name("Placeholder_1"); Tensor loss = graph.get_operation_by_name("loss"); var init = tf.global_variables_initializer(); @@ -144,7 +144,7 @@ namespace TensorFlowNET.Examples // download graph meta data string url = "https://raw.githubusercontent.com/SciSharp/TensorFlow.NET/master/graph/xor.meta"; - Web.Download(url, "graph", "kmeans.meta"); + Web.Download(url, "graph", "xor.meta"); } } } diff --git a/test/TensorFlowNET.Examples/Text/Word2Vec.cs b/test/TensorFlowNET.Examples/Text/Word2Vec.cs index 54f831aa..1045d7ab 100644 --- a/test/TensorFlowNET.Examples/Text/Word2Vec.cs +++ b/test/TensorFlowNET.Examples/Text/Word2Vec.cs @@ -17,6 +17,7 @@ namespace TensorFlowNET.Examples public int Priority => 12; public bool Enabled { get; set; } = true; public string Name => "Word2Vec"; + public bool ImportGraph { get; set; } = true; // Training Parameters float learning_rate = 0.1f;