| @@ -177,7 +177,8 @@ namespace Tensorflow | |||||
| use_bias: use_bias, | use_bias: use_bias, | ||||
| bias_initializer: bias_initializer, | bias_initializer: bias_initializer, | ||||
| kernel_initializer: kernel_initializer, | kernel_initializer: kernel_initializer, | ||||
| trainable: trainable); | |||||
| trainable: trainable, | |||||
| name: name); | |||||
| return layer.apply(inputs).Item1; | return layer.apply(inputs).Item1; | ||||
| } | } | ||||
| @@ -35,10 +35,11 @@ namespace Tensorflow.Keras.Layers | |||||
| public Dense(int units, | public Dense(int units, | ||||
| IActivation activation, | IActivation activation, | ||||
| string name = null, | |||||
| bool use_bias = true, | bool use_bias = true, | ||||
| bool trainable = false, | bool trainable = false, | ||||
| IInitializer kernel_initializer = null, | IInitializer kernel_initializer = null, | ||||
| IInitializer bias_initializer = null) : base(trainable: trainable) | |||||
| IInitializer bias_initializer = null) : base(trainable: trainable, name: name) | |||||
| { | { | ||||
| this.units = units; | this.units = units; | ||||
| this.activation = activation; | this.activation = activation; | ||||
| @@ -20,7 +20,7 @@ | |||||
| <ItemGroup> | <ItemGroup> | ||||
| <PackageReference Include="BenchmarkDotNet" Version="0.12.0" /> | <PackageReference Include="BenchmarkDotNet" Version="0.12.0" /> | ||||
| <PackageReference Include="SciSharp.TensorFlow.Redist" Version="1.14.1" /> | <PackageReference Include="SciSharp.TensorFlow.Redist" Version="1.14.1" /> | ||||
| <PackageReference Include="TensorFlow.NET" Version="0.13.0" /> | |||||
| <PackageReference Include="TensorFlow.NET" Version="0.14.0" /> | |||||
| </ItemGroup> | </ItemGroup> | ||||
| </Project> | </Project> | ||||
| @@ -28,7 +28,7 @@ | |||||
| </ItemGroup> | </ItemGroup> | ||||
| <ItemGroup> | <ItemGroup> | ||||
| <PackageReference Include="FluentAssertions" Version="5.9.0" /> | |||||
| <PackageReference Include="FluentAssertions" Version="5.10.0" /> | |||||
| <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" /> | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" /> | ||||
| <PackageReference Include="MSTest.TestAdapter" Version="2.0.0" /> | <PackageReference Include="MSTest.TestAdapter" Version="2.0.0" /> | ||||
| <PackageReference Include="MSTest.TestFramework" Version="2.0.0" /> | <PackageReference Include="MSTest.TestFramework" Version="2.0.0" /> | ||||