Browse Source

tf.layers.dense does not pass through name to the Keras Layer #484

tags/v0.20
Oceania2018 5 years ago
parent
commit
998a9ac4d2
4 changed files with 6 additions and 4 deletions
  1. +2
    -1
      src/TensorFlowNET.Core/APIs/tf.layers.cs
  2. +2
    -1
      src/TensorFlowNET.Core/Keras/Layers/Dense.cs
  3. +1
    -1
      src/TensorFlowNet.Benchmarks/Benchmark.csproj
  4. +1
    -1
      test/TensorFlowNET.UnitTest/UnitTest.csproj

+ 2
- 1
src/TensorFlowNET.Core/APIs/tf.layers.cs View File

@@ -177,7 +177,8 @@ namespace Tensorflow
use_bias: use_bias,
bias_initializer: bias_initializer,
kernel_initializer: kernel_initializer,
trainable: trainable);
trainable: trainable,
name: name);

return layer.apply(inputs).Item1;
}


+ 2
- 1
src/TensorFlowNET.Core/Keras/Layers/Dense.cs View File

@@ -35,10 +35,11 @@ namespace Tensorflow.Keras.Layers

public Dense(int units,
IActivation activation,
string name = null,
bool use_bias = true,
bool trainable = false,
IInitializer kernel_initializer = null,
IInitializer bias_initializer = null) : base(trainable: trainable)
IInitializer bias_initializer = null) : base(trainable: trainable, name: name)
{
this.units = units;
this.activation = activation;


+ 1
- 1
src/TensorFlowNet.Benchmarks/Benchmark.csproj View File

@@ -20,7 +20,7 @@
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" />
<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>

</Project>

+ 1
- 1
test/TensorFlowNET.UnitTest/UnitTest.csproj View File

@@ -28,7 +28,7 @@
</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="MSTest.TestAdapter" Version="2.0.0" />
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />


Loading…
Cancel
Save