From 8503a52a61ae81d3ce26aa2a9c0f8880fe233957 Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Sat, 27 Apr 2019 13:25:39 -0500 Subject: [PATCH] auto download kmeans.meta --- test/TensorFlowNET.Examples/KMeansClustering.cs | 6 +++++- test/TensorFlowNET.UnitTest/VersionTest.cs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/TensorFlowNET.Examples/KMeansClustering.cs b/test/TensorFlowNET.Examples/KMeansClustering.cs index a02c3b2d..1e04ac6e 100644 --- a/test/TensorFlowNET.Examples/KMeansClustering.cs +++ b/test/TensorFlowNET.Examples/KMeansClustering.cs @@ -39,7 +39,7 @@ namespace TensorFlowNET.Examples var graph = tf.Graph().as_default(); - tf.train.import_meta_graph("kmeans.meta"); + tf.train.import_meta_graph("graph/kmeans.meta"); // Input images var X = graph.get_operation_by_name("Placeholder").output; // tf.placeholder(tf.float32, shape: new TensorShape(-1, num_features)); @@ -111,6 +111,10 @@ namespace TensorFlowNET.Examples { mnist = MnistDataSet.read_data_sets("mnist", one_hot: true, train_size: train_size, validation_size:validation_size, test_size:test_size); full_data_x = mnist.train.images; + + // download graph meta data + string url = "https://raw.githubusercontent.com/SciSharp/TensorFlow.NET/master/graph/kmeans.meta"; + Web.Download(url, "graph", "kmeans.meta"); } } } diff --git a/test/TensorFlowNET.UnitTest/VersionTest.cs b/test/TensorFlowNET.UnitTest/VersionTest.cs index 2eba75bd..30900df0 100644 --- a/test/TensorFlowNET.UnitTest/VersionTest.cs +++ b/test/TensorFlowNET.UnitTest/VersionTest.cs @@ -13,7 +13,7 @@ namespace TensorFlowNET.UnitTest public void GetVersion() { var ver = tf.VERSION; - Assert.IsTrue(ver.StartsWith("1.13.")); + Assert.IsTrue(ver.StartsWith("1.14.")); } } }