| @@ -9,11 +9,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TensorFlowNET.Examples", "t | |||||
| EndProject | EndProject | ||||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TensorFlowNET.Core", "src\TensorFlowNET.Core\TensorFlowNET.Core.csproj", "{FD682AC0-7B2D-45D3-8B0D-C6D678B04144}" | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TensorFlowNET.Core", "src\TensorFlowNET.Core\TensorFlowNET.Core.csproj", "{FD682AC0-7B2D-45D3-8B0D-C6D678B04144}" | ||||
| EndProject | EndProject | ||||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MakinaNET.Core", "src\MakinaNET.Core\MakinaNET.Core.csproj", "{6FF518EB-523F-4930-919E-05011EFCED6F}" | |||||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Keras.Core", "src\KerasNET.Core\Keras.Core.csproj", "{902E188F-A953-43B4-9991-72BAB1697BC3}" | |||||
| EndProject | EndProject | ||||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MakinaNET.Example", "src\MakinaNET.Example\MakinaNET.Example.csproj", "{17E1AC16-9E0E-4545-905A-E92C6300C7AF}" | |||||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Keras.Example", "test\KerasNET.Example\Keras.Example.csproj", "{17E1AC16-9E0E-4545-905A-E92C6300C7AF}" | |||||
| EndProject | EndProject | ||||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MakinaNET.UnitTest", "src\MakinaNET.Test\MakinaNET.UnitTest.csproj", "{02F54D9F-617B-4B15-9D21-E21AF66693B1}" | |||||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Keras.UnitTest", "test\KerasNET.Test\Keras.UnitTest.csproj", "{A5839A45-A117-4BEA-898B-DE1ED6E0D58F}" | |||||
| EndProject | EndProject | ||||
| Global | Global | ||||
| GlobalSection(SolutionConfigurationPlatforms) = preSolution | GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||||
| @@ -33,18 +33,18 @@ Global | |||||
| {FD682AC0-7B2D-45D3-8B0D-C6D678B04144}.Debug|Any CPU.Build.0 = Debug|Any CPU | {FD682AC0-7B2D-45D3-8B0D-C6D678B04144}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||||
| {FD682AC0-7B2D-45D3-8B0D-C6D678B04144}.Release|Any CPU.ActiveCfg = Release|Any CPU | {FD682AC0-7B2D-45D3-8B0D-C6D678B04144}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||||
| {FD682AC0-7B2D-45D3-8B0D-C6D678B04144}.Release|Any CPU.Build.0 = Release|Any CPU | {FD682AC0-7B2D-45D3-8B0D-C6D678B04144}.Release|Any CPU.Build.0 = Release|Any CPU | ||||
| {6FF518EB-523F-4930-919E-05011EFCED6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||||
| {6FF518EB-523F-4930-919E-05011EFCED6F}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||||
| {6FF518EB-523F-4930-919E-05011EFCED6F}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||||
| {6FF518EB-523F-4930-919E-05011EFCED6F}.Release|Any CPU.Build.0 = Release|Any CPU | |||||
| {902E188F-A953-43B4-9991-72BAB1697BC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||||
| {902E188F-A953-43B4-9991-72BAB1697BC3}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||||
| {902E188F-A953-43B4-9991-72BAB1697BC3}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||||
| {902E188F-A953-43B4-9991-72BAB1697BC3}.Release|Any CPU.Build.0 = Release|Any CPU | |||||
| {17E1AC16-9E0E-4545-905A-E92C6300C7AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | {17E1AC16-9E0E-4545-905A-E92C6300C7AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||||
| {17E1AC16-9E0E-4545-905A-E92C6300C7AF}.Debug|Any CPU.Build.0 = Debug|Any CPU | {17E1AC16-9E0E-4545-905A-E92C6300C7AF}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||||
| {17E1AC16-9E0E-4545-905A-E92C6300C7AF}.Release|Any CPU.ActiveCfg = Release|Any CPU | {17E1AC16-9E0E-4545-905A-E92C6300C7AF}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||||
| {17E1AC16-9E0E-4545-905A-E92C6300C7AF}.Release|Any CPU.Build.0 = Release|Any CPU | {17E1AC16-9E0E-4545-905A-E92C6300C7AF}.Release|Any CPU.Build.0 = Release|Any CPU | ||||
| {02F54D9F-617B-4B15-9D21-E21AF66693B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||||
| {02F54D9F-617B-4B15-9D21-E21AF66693B1}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||||
| {02F54D9F-617B-4B15-9D21-E21AF66693B1}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||||
| {02F54D9F-617B-4B15-9D21-E21AF66693B1}.Release|Any CPU.Build.0 = Release|Any CPU | |||||
| {A5839A45-A117-4BEA-898B-DE1ED6E0D58F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||||
| {A5839A45-A117-4BEA-898B-DE1ED6E0D58F}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||||
| {A5839A45-A117-4BEA-898B-DE1ED6E0D58F}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||||
| {A5839A45-A117-4BEA-898B-DE1ED6E0D58F}.Release|Any CPU.Build.0 = Release|Any CPU | |||||
| EndGlobalSection | EndGlobalSection | ||||
| GlobalSection(SolutionProperties) = preSolution | GlobalSection(SolutionProperties) = preSolution | ||||
| HideSolutionNode = FALSE | HideSolutionNode = FALSE | ||||
| @@ -3,9 +3,9 @@ using System.Collections.Generic; | |||||
| using System.Text; | using System.Text; | ||||
| using Tensorflow; | using Tensorflow; | ||||
| namespace Makina | |||||
| namespace Keras | |||||
| { | { | ||||
| public static class Makina | |||||
| public static class Keras | |||||
| { | { | ||||
| public static Tensor create_tensor(int[] shape, float mean = 0, float stddev = 1, TF_DataType dtype = TF_DataType.TF_FLOAT, int? seed = null, string name = null) | public static Tensor create_tensor(int[] shape, float mean = 0, float stddev = 1, TF_DataType dtype = TF_DataType.TF_FLOAT, int? seed = null, string name = null) | ||||
| { | { | ||||
| @@ -2,7 +2,7 @@ | |||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||
| using System.Text; | using System.Text; | ||||
| namespace Makina | |||||
| namespace Keras | |||||
| { | { | ||||
| interface IInitializer | interface IInitializer | ||||
| { | { | ||||
| @@ -4,7 +4,7 @@ using System.Text; | |||||
| using Tensorflow; | using Tensorflow; | ||||
| using Tensorflow.Layers; | using Tensorflow.Layers; | ||||
| namespace Makina.Initializer | |||||
| namespace Keras.Initializer | |||||
| { | { | ||||
| class BaseInitializer : IInitializer | class BaseInitializer : IInitializer | ||||
| { | { | ||||
| @@ -2,8 +2,8 @@ | |||||
| <PropertyGroup> | <PropertyGroup> | ||||
| <TargetFramework>netstandard2.0</TargetFramework> | <TargetFramework>netstandard2.0</TargetFramework> | ||||
| <AssemblyName>Makina</AssemblyName> | |||||
| <RootNamespace>Makina</RootNamespace> | |||||
| <AssemblyName>Keras</AssemblyName> | |||||
| <RootNamespace>Keras</RootNamespace> | |||||
| </PropertyGroup> | </PropertyGroup> | ||||
| <ItemGroup> | <ItemGroup> | ||||
| @@ -3,12 +3,12 @@ using System.Collections.Generic; | |||||
| using System.Text; | using System.Text; | ||||
| using System.Linq; | using System.Linq; | ||||
| using Tensorflow; | using Tensorflow; | ||||
| using static Makina.Makina; | |||||
| using Makina; | |||||
| using static Keras.Keras; | |||||
| using Keras; | |||||
| using NumSharp; | using NumSharp; | ||||
| using Tensorflow.Operations.Activation; | using Tensorflow.Operations.Activation; | ||||
| namespace Makina.Layers | |||||
| namespace Keras.Layers | |||||
| { | { | ||||
| public class Dense : ILayer | public class Dense : ILayer | ||||
| { | { | ||||
| @@ -4,7 +4,7 @@ using System.Text; | |||||
| using Tensorflow; | using Tensorflow; | ||||
| using NumSharp; | using NumSharp; | ||||
| namespace Makina.Layers | |||||
| namespace Keras.Layers | |||||
| { | { | ||||
| public interface ILayer | public interface ILayer | ||||
| { | { | ||||
| @@ -1,13 +1,13 @@ | |||||
| using Makina.Layers; | |||||
| using Keras.Layers; | |||||
| using NumSharp; | using NumSharp; | ||||
| using System; | using System; | ||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||
| using System.Text; | using System.Text; | ||||
| using Tensorflow; | using Tensorflow; | ||||
| using static Makina.Makina; | |||||
| using static Keras.Keras; | |||||
| using static Tensorflow.Python; | using static Tensorflow.Python; | ||||
| namespace Makina | |||||
| namespace Keras | |||||
| { | { | ||||
| public class Model | public class Model | ||||
| { | { | ||||
| @@ -1,98 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||||
| <Import Project="..\..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props')" /> | |||||
| <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |||||
| <PropertyGroup> | |||||
| <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||||
| <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||||
| <ProjectGuid>{02F54D9F-617B-4B15-9D21-E21AF66693B1}</ProjectGuid> | |||||
| <OutputType>Library</OutputType> | |||||
| <AppDesignerFolder>Properties</AppDesignerFolder> | |||||
| <RootNamespace>MakinaNET.Test</RootNamespace> | |||||
| <AssemblyName>MakinaNET.Test</AssemblyName> | |||||
| <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | |||||
| <FileAlignment>512</FileAlignment> | |||||
| <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | |||||
| <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion> | |||||
| <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||||
| <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath> | |||||
| <IsCodedUITest>False</IsCodedUITest> | |||||
| <TestProjectType>UnitTest</TestProjectType> | |||||
| <NuGetPackageImportStamp> | |||||
| </NuGetPackageImportStamp> | |||||
| </PropertyGroup> | |||||
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||||
| <DebugSymbols>true</DebugSymbols> | |||||
| <DebugType>full</DebugType> | |||||
| <Optimize>false</Optimize> | |||||
| <OutputPath>bin\Debug\</OutputPath> | |||||
| <DefineConstants>DEBUG;TRACE</DefineConstants> | |||||
| <ErrorReport>prompt</ErrorReport> | |||||
| <WarningLevel>4</WarningLevel> | |||||
| </PropertyGroup> | |||||
| <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||||
| <DebugType>pdbonly</DebugType> | |||||
| <Optimize>true</Optimize> | |||||
| <OutputPath>bin\Release\</OutputPath> | |||||
| <DefineConstants>TRACE</DefineConstants> | |||||
| <ErrorReport>prompt</ErrorReport> | |||||
| <WarningLevel>4</WarningLevel> | |||||
| </PropertyGroup> | |||||
| <ItemGroup> | |||||
| <Reference Include="ArrayFire, Version=0.0.2.0, Culture=neutral, processorArchitecture=MSIL"> | |||||
| <HintPath>..\..\packages\ArrayFire.0.0.2\lib\netstandard2.0\ArrayFire.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | |||||
| <HintPath>..\..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | |||||
| <HintPath>..\..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="NumSharp.Core, Version=0.10.1.0, Culture=neutral, processorArchitecture=MSIL"> | |||||
| <HintPath>..\..\packages\NumSharp.0.10.1\lib\netstandard2.0\NumSharp.Core.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="System" /> | |||||
| <Reference Include="System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> | |||||
| <HintPath>..\..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="System.Core" /> | |||||
| <Reference Include="System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> | |||||
| <HintPath>..\..\packages\System.Memory.4.5.2\lib\netstandard2.0\System.Memory.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="System.Numerics" /> | |||||
| <Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | |||||
| <HintPath>..\..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath> | |||||
| </Reference> | |||||
| <Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | |||||
| <HintPath>..\..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath> | |||||
| </Reference> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <Compile Include="BaseTests.cs" /> | |||||
| <Compile Include="Properties\AssemblyInfo.cs" /> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <None Include="app.config" /> | |||||
| <None Include="packages.config" /> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <ProjectReference Include="..\MakinaNET.Core\MakinaNET.Core.csproj"> | |||||
| <Project>{6ff518eb-523f-4930-919e-05011efced6f}</Project> | |||||
| <Name>MakinaNET.Core</Name> | |||||
| </ProjectReference> | |||||
| <ProjectReference Include="..\TensorFlowNET.Core\TensorFlowNET.Core.csproj"> | |||||
| <Project>{fd682ac0-7b2d-45d3-8b0d-c6d678b04144}</Project> | |||||
| <Name>TensorFlowNET.Core</Name> | |||||
| </ProjectReference> | |||||
| </ItemGroup> | |||||
| <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" /> | |||||
| <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |||||
| <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | |||||
| <PropertyGroup> | |||||
| <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | |||||
| </PropertyGroup> | |||||
| <Error Condition="!Exists('..\..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props'))" /> | |||||
| <Error Condition="!Exists('..\..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets'))" /> | |||||
| </Target> | |||||
| <Import Project="..\..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets')" /> | |||||
| </Project> | |||||
| @@ -1,20 +0,0 @@ | |||||
| using System.Reflection; | |||||
| using System.Runtime.CompilerServices; | |||||
| using System.Runtime.InteropServices; | |||||
| [assembly: AssemblyTitle("Makina.Test")] | |||||
| [assembly: AssemblyDescription("")] | |||||
| [assembly: AssemblyConfiguration("")] | |||||
| [assembly: AssemblyCompany("")] | |||||
| [assembly: AssemblyProduct("Makina.Test")] | |||||
| [assembly: AssemblyCopyright("Copyright © 2019")] | |||||
| [assembly: AssemblyTrademark("")] | |||||
| [assembly: AssemblyCulture("")] | |||||
| [assembly: ComVisible(false)] | |||||
| [assembly: Guid("02f54d9f-617b-4b15-9d21-e21af66693b1")] | |||||
| // [assembly: AssemblyVersion("1.0.*")] | |||||
| [assembly: AssemblyVersion("1.0.0.0")] | |||||
| [assembly: AssemblyFileVersion("1.0.0.0")] | |||||
| @@ -1,11 +0,0 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <configuration> | |||||
| <runtime> | |||||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |||||
| <dependentAssembly> | |||||
| <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | |||||
| <bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" /> | |||||
| </dependentAssembly> | |||||
| </assemblyBinding> | |||||
| </runtime> | |||||
| </configuration> | |||||
| @@ -74,11 +74,11 @@ | |||||
| <None Include="packages.config" /> | <None Include="packages.config" /> | ||||
| </ItemGroup> | </ItemGroup> | ||||
| <ItemGroup> | <ItemGroup> | ||||
| <ProjectReference Include="..\MakinaNET.Core\MakinaNET.Core.csproj"> | |||||
| <Project>{6ff518eb-523f-4930-919e-05011efced6f}</Project> | |||||
| <Name>MakinaNET.Core</Name> | |||||
| <ProjectReference Include="..\..\src\KerasNET.Core\Keras.Core.csproj"> | |||||
| <Project>{902e188f-a953-43b4-9991-72bab1697bc3}</Project> | |||||
| <Name>Keras.Core</Name> | |||||
| </ProjectReference> | </ProjectReference> | ||||
| <ProjectReference Include="..\TensorFlowNET.Core\TensorFlowNET.Core.csproj"> | |||||
| <ProjectReference Include="..\..\src\TensorFlowNET.Core\TensorFlowNET.Core.csproj"> | |||||
| <Project>{fd682ac0-7b2d-45d3-8b0d-c6d678b04144}</Project> | <Project>{fd682ac0-7b2d-45d3-8b0d-c6d678b04144}</Project> | ||||
| <Name>TensorFlowNET.Core</Name> | <Name>TensorFlowNET.Core</Name> | ||||
| </ProjectReference> | </ProjectReference> | ||||
| @@ -5,18 +5,18 @@ using System.Text; | |||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| using Tensorflow; | using Tensorflow; | ||||
| using static Tensorflow.Python; | using static Tensorflow.Python; | ||||
| using static Makina.Makina; | |||||
| using Makina.Layers; | |||||
| using Makina; | |||||
| using static Keras.Keras; | |||||
| using Keras.Layers; | |||||
| using Keras; | |||||
| using NumSharp; | using NumSharp; | ||||
| namespace Makina.Example | |||||
| namespace Keras.Example | |||||
| { | { | ||||
| class Program | class Program | ||||
| { | { | ||||
| static void Main(string[] args) | static void Main(string[] args) | ||||
| { | { | ||||
| Console.WriteLine("================================== Makina =================================="); | |||||
| Console.WriteLine("================================== Keras =================================="); | |||||
| #region data | #region data | ||||
| var batch_size = 1000; | var batch_size = 1000; | ||||
| @@ -5,11 +5,11 @@ using System.Runtime.InteropServices; | |||||
| // General Information about an assembly is controlled through the following | // General Information about an assembly is controlled through the following | ||||
| // set of attributes. Change these attribute values to modify the information | // set of attributes. Change these attribute values to modify the information | ||||
| // associated with an assembly. | // associated with an assembly. | ||||
| [assembly: AssemblyTitle("Makina.Example")] | |||||
| [assembly: AssemblyTitle("Keras.Example")] | |||||
| [assembly: AssemblyDescription("")] | [assembly: AssemblyDescription("")] | ||||
| [assembly: AssemblyConfiguration("")] | [assembly: AssemblyConfiguration("")] | ||||
| [assembly: AssemblyCompany("")] | [assembly: AssemblyCompany("")] | ||||
| [assembly: AssemblyProduct("Makina.Example")] | |||||
| [assembly: AssemblyProduct("Keras.Example")] | |||||
| [assembly: AssemblyCopyright("Copyright © 2019")] | [assembly: AssemblyCopyright("Copyright © 2019")] | ||||
| [assembly: AssemblyTrademark("")] | [assembly: AssemblyTrademark("")] | ||||
| [assembly: AssemblyCulture("")] | [assembly: AssemblyCulture("")] | ||||
| @@ -1,11 +1,11 @@ | |||||
| using System; | using System; | ||||
| using Tensorflow; | using Tensorflow; | ||||
| using Makina; | |||||
| using Makina.Layers; | |||||
| using Keras; | |||||
| using Keras.Layers; | |||||
| using NumSharp; | using NumSharp; | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
| namespace Makina.Test | |||||
| namespace Keras.Test | |||||
| { | { | ||||
| [TestClass] | [TestClass] | ||||
| public class BaseTests | public class BaseTests | ||||
| @@ -17,7 +17,12 @@ namespace Makina.Test | |||||
| var input = new Tensor(np.array(new int[] { 3 })); | var input = new Tensor(np.array(new int[] { 3 })); | ||||
| dense_1.__build__(input.getShape()); | dense_1.__build__(input.getShape()); | ||||
| var outputShape = dense_1.output_shape(input.getShape()); | var outputShape = dense_1.output_shape(input.getShape()); | ||||
| //Assert.AreEqual(outputShape.Dimensions, new int[] { 1 }); | |||||
| 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)); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -0,0 +1,34 @@ | |||||
| <Project Sdk="Microsoft.NET.Sdk"> | |||||
| <PropertyGroup> | |||||
| <TargetFramework>netcoreapp2.2</TargetFramework> | |||||
| <IsPackable>false</IsPackable> | |||||
| <AssemblyName>Keras.UnitTest</AssemblyName> | |||||
| <RootNamespace>Keras.UnitTest</RootNamespace> | |||||
| </PropertyGroup> | |||||
| <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | |||||
| <DefineConstants>DEBUG;TRACE</DefineConstants> | |||||
| <AllowUnsafeBlocks>true</AllowUnsafeBlocks> | |||||
| </PropertyGroup> | |||||
| <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | |||||
| <AllowUnsafeBlocks>true</AllowUnsafeBlocks> | |||||
| </PropertyGroup> | |||||
| <ItemGroup> | |||||
| <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.0" /> | |||||
| <PackageReference Include="MSTest.TestAdapter" Version="1.4.0" /> | |||||
| <PackageReference Include="MSTest.TestFramework" Version="1.4.0" /> | |||||
| </ItemGroup> | |||||
| <ItemGroup> | |||||
| <ProjectReference Include="..\..\src\KerasNET.Core\Keras.Core.csproj" /> | |||||
| <ProjectReference Include="..\..\src\TensorFlowNET.Core\TensorFlowNET.Core.csproj" /> | |||||
| <ProjectReference Include="..\KerasNET.Example\Keras.Example.csproj" /> | |||||
| </ItemGroup> | |||||
| </Project> | |||||