diff --git a/src/TensorFlowNet.Benchmarks/TensorFlowNET.Benchmark.csproj b/src/TensorFlowNet.Benchmarks/TensorFlowNET.Benchmark.csproj new file mode 100644 index 00000000..a0af6db4 --- /dev/null +++ b/src/TensorFlowNet.Benchmarks/TensorFlowNET.Benchmark.csproj @@ -0,0 +1,20 @@ + + + + Exe + netcoreapp2.2 + + + + + + + + + + + + + + + diff --git a/test/KerasNET.Example/Keras.Example.csproj b/test/KerasNET.Example/Keras.Example.csproj deleted file mode 100644 index 14fa0138..00000000 --- a/test/KerasNET.Example/Keras.Example.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - - Exe - netcoreapp2.2 - false - Keras.Example.Program - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test/KerasNET.Example/Keras.cs b/test/KerasNET.Example/Keras.cs deleted file mode 100644 index f85fe127..00000000 --- a/test/KerasNET.Example/Keras.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Collections.Generic; -using Tensorflow; -using Keras.Layers; -using NumSharp; - -namespace Keras.Example -{ - class Program - { - static void Main(string[] args) - { - Console.WriteLine("================================== Keras =================================="); - - #region data - var batch_size = 1000; - var (X, Y) = XOR(batch_size); - //var (X, Y, batch_size) = (np.array(new float[,]{{1, 0 },{1, 1 },{0, 0 },{0, 1 }}), np.array(new int[] { 0, 1, 1, 0 }), 4); - #endregion - - #region features - var (features, labels) = (new Tensor(X), new Tensor(Y)); - var num_steps = 10000; - #endregion - - #region model - var m = new Model(); - - //m.Add(new Dense(8, name: "Hidden", activation: tf.nn.relu())).Add(new Dense(1, name:"Output")); - - m.Add( - new ILayer[] { - new Dense(8, name: "Hidden_1", activation: tf.nn.relu()), - new Dense(1, name: "Output") - }); - - m.train(num_steps, (X, Y)); - #endregion - - Console.ReadKey(); - } - static (NDArray, NDArray) XOR(int samples) - { - var X = new List(); - var Y = new List(); - var r = new Random(); - for (int i = 0; i < samples; i++) - { - var x1 = (float)r.Next(0, 2); - var x2 = (float)r.Next(0, 2); - var y = 0.0f; - if (x1 == x2) - y = 1.0f; - X.Add(new float[] { x1, x2 }); - Y.Add(y); - } - - return (np.array(X.ToArray()), np.array(Y.ToArray())); - } - } -} diff --git a/test/KerasNET.Example/packages.config b/test/KerasNET.Example/packages.config deleted file mode 100644 index e7c17277..00000000 --- a/test/KerasNET.Example/packages.config +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/test/KerasNET.Test/Keras.UnitTest.csproj b/test/KerasNET.Test/Keras.UnitTest.csproj deleted file mode 100644 index e5956a96..00000000 --- a/test/KerasNET.Test/Keras.UnitTest.csproj +++ /dev/null @@ -1,40 +0,0 @@ - - - - netcoreapp2.2 - - false - - Keras.UnitTest - - Keras.UnitTest - - - - Exe - - - - - - DEBUG;TRACE - true - - - - true - - - - - - - - - - - - - - - diff --git a/test/KerasNET.Test/KerasTests.cs b/test/KerasNET.Test/KerasTests.cs deleted file mode 100644 index 05cde48c..00000000 --- a/test/KerasNET.Test/KerasTests.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Tensorflow; -using Keras.Layers; -using NumSharp; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace Keras.Test -{ - [TestClass] - public class BaseTests - { - [TestMethod] - public void Dense_Tensor_ShapeTest() - { - var dense_1 = new Dense(1, name: "dense_1", activation: tf.nn.relu()); - var input = new Tensor(np.array(new int[] { 3 })); - dense_1.__build__(input.TensorShape); - var outputShape = dense_1.output_shape(input.TensorShape); - var a = (int[])(outputShape.Dimensions); - var b = (int[])(new int[] { 1 }); - var _a = np.array(a); - var _b = np.array(b); - - Assert.IsTrue(np.array_equal(_a, _b)); - } - } -} diff --git a/test/KerasNET.Test/packages.config b/test/KerasNET.Test/packages.config deleted file mode 100644 index 7e0fea67..00000000 --- a/test/KerasNET.Test/packages.config +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/test/TensorFlowHub.Examples/Program.cs b/test/TensorFlowHub.Examples/Program.cs deleted file mode 100644 index 3fdbad12..00000000 --- a/test/TensorFlowHub.Examples/Program.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace TensorFlowHub.Examples -{ - class Program - { - static void Main(string[] args) - { - Console.WriteLine("Hello World!"); - } - } -} diff --git a/test/TensorFlowHub.Examples/TensorFlowHub.Examples.csproj b/test/TensorFlowHub.Examples/TensorFlowHub.Examples.csproj deleted file mode 100644 index ae01aa36..00000000 --- a/test/TensorFlowHub.Examples/TensorFlowHub.Examples.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - Exe - netcoreapp2.2 - - - - - - - - - - -