Browse Source

update xor.meta with named tensors

tags/v0.9
Meinrad Recheis 6 years ago
parent
commit
f4227db265
3 changed files with 4 additions and 3 deletions
  1. BIN
      graph/xor.meta
  2. +3
    -3
      test/TensorFlowNET.Examples/NeuralNetXor.cs
  3. +1
    -0
      test/TensorFlowNET.Examples/Text/Word2Vec.cs

BIN
graph/xor.meta View File


+ 3
- 3
test/TensorFlowNET.Examples/NeuralNetXor.cs View File

@@ -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");
}
}
}

+ 1
- 0
test/TensorFlowNET.Examples/Text/Word2Vec.cs View File

@@ -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;


Loading…
Cancel
Save