GeezerVison is showing github.com — Merge pull request #1209 from Wanglongzhi2001/fix_test_foler_place · MSavameri/TensorFlow.NET@f7459b3
File treeExpand file treeCollapse file tree Open diff view settings test/TensorFlow.Kernel.UnitTest
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: TensorFlow.NET.sln +20-20Lines changed: 20 additions & 20 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -39,7 +39,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tensorflow.Benchmark", "too | 39 | 39 | EndProject | 40 | 40 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tensorflow.Console", "tools\TensorFlowNET.Console\Tensorflow.Console.csproj", "{1DC32255-BA1F-4D6D-A9C9-5BD5ED71CAA0}" | 41 | 41 | EndProject | 42 | | -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TensorFlow.Kernel.UnitTest", "TensorFlow.Kernel.UnitTest\TensorFlow.Kernel.UnitTest.csproj", "{C08C6692-4818-46C1-8462-2F0CC40C9152}" | | 42 | +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TensorFlow.Kernel.UnitTest", "test\TensorFlow.Kernel.UnitTest\TensorFlow.Kernel.UnitTest.csproj", "{654A027D-1364-4729-880B-144DFE1FF5BB}" | 43 | 43 | EndProject | 44 | 44 | Global | 45 | 45 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | @@ -324,24 +324,24 @@ Global | 324 | 324 | {1DC32255-BA1F-4D6D-A9C9-5BD5ED71CAA0}.Release|x64.Build.0 = Release|x64 | 325 | 325 | {1DC32255-BA1F-4D6D-A9C9-5BD5ED71CAA0}.Release|x86.ActiveCfg = Release|Any CPU | 326 | 326 | {1DC32255-BA1F-4D6D-A9C9-5BD5ED71CAA0}.Release|x86.Build.0 = Release|Any CPU | 327 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | 328 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Debug|Any CPU.Build.0 = Debug|Any CPU | 329 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Debug|x64.ActiveCfg = Debug|Any CPU | 330 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Debug|x64.Build.0 = Debug|Any CPU | 331 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Debug|x86.ActiveCfg = Debug|Any CPU | 332 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Debug|x86.Build.0 = Debug|Any CPU | 333 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.GPU|Any CPU.ActiveCfg = Debug|Any CPU | 334 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.GPU|Any CPU.Build.0 = Debug|Any CPU | 335 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.GPU|x64.ActiveCfg = Debug|Any CPU | 336 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.GPU|x64.Build.0 = Debug|Any CPU | 337 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.GPU|x86.ActiveCfg = Debug|Any CPU | 338 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.GPU|x86.Build.0 = Debug|Any CPU | 339 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Release|Any CPU.ActiveCfg = Release|Any CPU | 340 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Release|Any CPU.Build.0 = Release|Any CPU | 341 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Release|x64.ActiveCfg = Release|Any CPU | 342 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Release|x64.Build.0 = Release|Any CPU | 343 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Release|x86.ActiveCfg = Release|Any CPU | 344 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152}.Release|x86.Build.0 = Release|Any CPU | | 327 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | | 328 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Debug|Any CPU.Build.0 = Debug|Any CPU | | 329 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Debug|x64.ActiveCfg = Debug|Any CPU | | 330 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Debug|x64.Build.0 = Debug|Any CPU | | 331 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Debug|x86.ActiveCfg = Debug|Any CPU | | 332 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Debug|x86.Build.0 = Debug|Any CPU | | 333 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.GPU|Any CPU.ActiveCfg = Debug|Any CPU | | 334 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.GPU|Any CPU.Build.0 = Debug|Any CPU | | 335 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.GPU|x64.ActiveCfg = Debug|Any CPU | | 336 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.GPU|x64.Build.0 = Debug|Any CPU | | 337 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.GPU|x86.ActiveCfg = Debug|Any CPU | | 338 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.GPU|x86.Build.0 = Debug|Any CPU | | 339 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Release|Any CPU.ActiveCfg = Release|Any CPU | | 340 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Release|Any CPU.Build.0 = Release|Any CPU | | 341 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Release|x64.ActiveCfg = Release|Any CPU | | 342 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Release|x64.Build.0 = Release|Any CPU | | 343 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Release|x86.ActiveCfg = Release|Any CPU | | 344 | + {654A027D-1364-4729-880B-144DFE1FF5BB}.Release|x86.Build.0 = Release|Any CPU | 345 | 345 | EndGlobalSection | 346 | 346 | GlobalSection(SolutionProperties) = preSolution | 347 | 347 | HideSolutionNode = FALSE | @@ -362,7 +362,7 @@ Global | 362 | 362 | {D24FCAA5-548C-4251-B226-A1B6535D0845} = {E1A5D2B7-10AF-4876-85C0-7714EF274214} | 363 | 363 | {C23563DB-FE21-48E7-A411-87A109E4A899} = {E1A5D2B7-10AF-4876-85C0-7714EF274214} | 364 | 364 | {1DC32255-BA1F-4D6D-A9C9-5BD5ED71CAA0} = {E1A5D2B7-10AF-4876-85C0-7714EF274214} | 365 | | - {C08C6692-4818-46C1-8462-2F0CC40C9152} = {1B0918B9-65AD-4F34-A287-AF4597B27DBD} | | 365 | + {654A027D-1364-4729-880B-144DFE1FF5BB} = {1B0918B9-65AD-4F34-A287-AF4597B27DBD} | 366 | 366 | EndGlobalSection | 367 | 367 | GlobalSection(ExtensibilityGlobals) = postSolution | 368 | 368 | SolutionGuid = {2DEAD3CC-486B-4918-A607-50B0DE7B114A} | |
Collapse file Copy file name to clipboardExpand all lines: test/TensorFlow.Kernel.UnitTest/TensorFlow.Kernel.UnitTest.csproj +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 17 | 17 | </ItemGroup> | 18 | 18 |
| 19 | 19 | <ItemGroup> | 20 | | - <ProjectReference Include="..\src\TensorFlowNET.Keras\Tensorflow.Keras.csproj" /> | 21 | | - <ProjectReference Include="..\tools\Tensorflow.UnitTest.RedistHolder\Tensorflow.UnitTest.RedistHolder.csproj" /> | | 20 | + <ProjectReference Include="..\..\src\TensorFlowNET.Keras\Tensorflow.Keras.csproj" /> | | 21 | + <ProjectReference Include="..\..\tools\Tensorflow.UnitTest.RedistHolder\Tensorflow.UnitTest.RedistHolder.csproj" /> | 22 | 22 | </ItemGroup> | 23 | 23 |
| 24 | 24 | </Project> |
Collapse file Copy file name to clipboardExpand all lines: test/TensorFlow.Kernel.UnitTest/array_ops/concat_op_test.cs +4-6Lines changed: 4 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | using Microsoft.VisualStudio.TestTools.UnitTesting; | 2 | 2 | using Tensorflow; | 3 | 3 | using Tensorflow.NumPy; | 4 | | -using TensorFlow; | 5 | 4 | using static Tensorflow.Binding; | 6 | | -using static Tensorflow.KerasApi; | 7 | 5 |
| 8 | 6 | namespace TensorFlow.Kernel.UnitTest | 9 | 7 | { | @@ -23,14 +21,14 @@ public void testConcatEmpty() | 23 | 21 | [TestMethod] | 24 | 22 | public void testConcatNegativeAxis() | 25 | 23 | { | 26 | | - var t1 = tf.constant(new int[,] {{ 1, 2, 3 }, { 4, 5, 6 } }); | | 24 | + var t1 = tf.constant(new int[,] { { 1, 2, 3 }, { 4, 5, 6 } }); | 27 | 25 | var t2 = tf.constant(new int[,] { { 7, 8, 9 }, { 10, 11, 12 } }); | 28 | 26 | var c = array_ops.concat(new[] { t1, t2 }, -2); | 29 | 27 | var expected = np.array(new int[,,] { { { 1, 2, 3 }, { 4, 5, 6 } }, { { 7, 8, 9 }, { 10, 11, 12 } } }); | 30 | 28 | Assert.IsTrue(Enumerable.SequenceEqual(expected.ToArray<int>(), c.numpy().ToArray<int>())); | 31 | 29 |
| 32 | 30 | c = array_ops.concat(new[] { t1, t2 }, -1); | 33 | | - expected = np.array(new int[,] { { 1, 2, 3, 7, 8, 9 }, { 4, 5, 6, 10, 11, 12 } }); | | 31 | + expected = np.array(new int[,] { { 1, 2, 3, 7, 8, 9 }, { 4, 5, 6, 10, 11, 12 } }); | 34 | 32 | Assert.IsTrue(Enumerable.SequenceEqual(expected.ToArray<int>(), c.numpy().ToArray<int>())); | 35 | 33 | } | 36 | 34 |
| @@ -54,12 +52,12 @@ public void testConcatDtype(TF_DataType dtype) | 54 | 52 | [DataRow(TF_DataType.TF_INT64)] | 55 | 53 | public void testConcatAxisType(TF_DataType dtype) | 56 | 54 | { | 57 | | - var t1 = tf.constant(new int[,] { { 1, 2, 3 }, {4, 5, 6 } }); | | 55 | + var t1 = tf.constant(new int[,] { { 1, 2, 3 }, { 4, 5, 6 } }); | 58 | 56 | var t2 = tf.constant(new int[,] { { 7, 8, 9 }, { 10, 11, 12 } }); | 59 | 57 | var c = array_ops.concat(new[] { t1, t2 }, tf.constant(1, dtype: dtype)); | 60 | 58 | var expected = np.array(new int[,] { { 1, 2, 3, 7, 8, 9 }, { 4, 5, 6, 10, 11, 12 } }); | 61 | 59 | Assert.IsTrue(Enumerable.SequenceEqual(expected.ToArray<int>(), tf.cast(c, TF_DataType.TF_INT32).numpy().ToArray<int>())); | 62 | 60 | } | 63 | 61 |
| 64 | 62 | } | 65 | | -} | | 63 | +} |
|