Browse Source

Set SGD default value.

tags/v0.110.4-Transformer-Model
Haiping Chen 2 years ago
parent
commit
ba1ddb4448
4 changed files with 28 additions and 25 deletions
  1. +1
    -1
      src/TensorFlowNET.Core/Keras/IOptimizerApi.cs
  2. +5
    -5
      src/TensorFlowNET.Core/Tensorflow.Binding.csproj
  3. +1
    -1
      src/TensorFlowNET.Keras/Optimizers/OptimizerApi.cs
  4. +21
    -18
      src/TensorFlowNET.Keras/Tensorflow.Keras.csproj

+ 1
- 1
src/TensorFlowNET.Core/Keras/IOptimizerApi.cs View File

@@ -63,6 +63,6 @@ namespace Tensorflow.Keras
bool centered = false,
string name = "RMSprop");

IOptimizer SGD(float learning_rate, float momentum);
IOptimizer SGD(float learning_rate = 0.01f, float momentum = 0f);
}
}

+ 5
- 5
src/TensorFlowNET.Core/Tensorflow.Binding.csproj View File

@@ -5,13 +5,13 @@
<AssemblyName>Tensorflow.Binding</AssemblyName>
<RootNamespace>Tensorflow</RootNamespace>
<TargetTensorFlow>2.11.0</TargetTensorFlow>
<Version>0.110.2</Version>
<Version>0.110.3</Version>
<LangVersion>10.0</LangVersion>
<Nullable>enable</Nullable>
<Authors>Haiping Chen, Eli Belash, Yaohui Liu, Meinrad Recheis</Authors>
<Company>SciSharp STACK</Company>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<Copyright>Apache 2.0, Haiping Chen $([System.DateTime]::UtcNow.ToString(yyyy))</Copyright>
<Copyright>Apache 2.0, Haiping Chen since 2018</Copyright>
<RepositoryUrl>https://github.com/SciSharp/TensorFlow.NET</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>http://scisharpstack.org</PackageProjectUrl>
@@ -20,7 +20,7 @@
<Description>Google's TensorFlow full binding in .NET Standard.
Building, training and infering deep learning models.
https://tensorflownet.readthedocs.io</Description>
<AssemblyVersion>0.110.1.0</AssemblyVersion>
<AssemblyVersion>0.110.3.0</AssemblyVersion>
<PackageReleaseNotes>
tf.net 0.110.x and above are based on tensorflow native 2.11.0
* Support RNN, LSTM model.
@@ -43,7 +43,7 @@ https://tensorflownet.readthedocs.io</Description>
tf.net 0.10x.x aligns with TensorFlow v2.10.x native library.
tf.net 0.11x.x aligns with TensorFlow v2.11.x native library.
</PackageReleaseNotes>
<FileVersion>0.110.2.0</FileVersion>
<FileVersion>0.110.3.0</FileVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageOutputPath>packages</PackageOutputPath>
@@ -172,7 +172,7 @@ https://tensorflownet.readthedocs.io</Description>
</ItemGroup>

<ItemGroup>
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.148" />
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.149" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="OneOf" Version="3.0.255" />
<PackageReference Include="Protobuf.Text" Version="0.7.1" />


+ 1
- 1
src/TensorFlowNET.Keras/Optimizers/OptimizerApi.cs View File

@@ -71,7 +71,7 @@ namespace Tensorflow.Keras.Optimizers
Name = name
});

public IOptimizer SGD(float learning_rate, float momentum)
public IOptimizer SGD(float learning_rate = 0.01f, float momentum = 0f)
=> new SGD(learning_rate, momentum);
}
}

+ 21
- 18
src/TensorFlowNET.Keras/Tensorflow.Keras.csproj View File

@@ -7,27 +7,30 @@
<Nullable>enable</Nullable>
<RootNamespace>Tensorflow.Keras</RootNamespace>
<Platforms>AnyCPU;x64</Platforms>
<Version>0.11.2</Version>
<Version>0.11.3</Version>
<Authors>Haiping Chen</Authors>
<Product>Keras for .NET</Product>
<Copyright>Apache 2.0, Haiping Chen 2023</Copyright>
<Copyright>Apache 2.0, Haiping Chen since 2018</Copyright>
<PackageId>TensorFlow.Keras</PackageId>
<PackageProjectUrl>https://github.com/SciSharp/TensorFlow.NET</PackageProjectUrl>
<PackageIconUrl>https://avatars3.githubusercontent.com/u/44989469?s=200&amp;v=4</PackageIconUrl>
<RepositoryUrl>https://github.com/SciSharp/TensorFlow.NET</RepositoryUrl>
<PackageReleaseNotes>Keras for .NET is a C# version of Keras ported from the python version.

* Support CIFAR-10 dataset in keras.datasets.
* Support Conv2D functional API.
* Support BatchNormalization layer.
* Building keras model in subclass, functional and sequential api
* Implemented backward_function.
* Support model.load_weights.
* Add Subtract layer
* Text preprocessing
* Preprocessing.timeseries_dataset_from_array
* Fixed memory leak for YOLOv3 model.
* Support RNN and LSTM models</PackageReleaseNotes>
<PackageReleaseNotes>
Keras for .NET is a C# version of Keras ported from the python version.

* Support CIFAR-10 dataset in keras.datasets.
* Support Conv2D functional API.
* Support BatchNormalization layer.
* Building keras model in subclass, functional and sequential api
* Implemented backward_function.
* Support model.load_weights.
* Add Subtract layer
* Text preprocessing
* Preprocessing.timeseries_dataset_from_array
* Fixed memory leak for YOLOv3 model.
* Support RNN and LSTM models
* Support Transformer model
</PackageReleaseNotes>
<Description>Keras for .NET

Keras is an API designed for human beings, not machines. Keras follows best practices for reducing cognitive load: it offers consistent &amp; simple APIs, it minimizes the number of user actions required for common use cases, and it provides clear &amp; actionable error messages.</Description>
@@ -39,8 +42,8 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
<RepositoryType>Git</RepositoryType>
<SignAssembly>False</SignAssembly>
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
<AssemblyVersion>0.11.2.0</AssemblyVersion>
<FileVersion>0.11.2.0</FileVersion>
<AssemblyVersion>0.11.3.0</AssemblyVersion>
<FileVersion>0.11.3.0</FileVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Configurations>Debug;Release;GPU</Configurations>
</PropertyGroup>
@@ -140,7 +143,7 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HDF5-CSharp" Version="1.17.0" />
<PackageReference Include="HDF5-CSharp" Version="1.18.0" />
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.149" />
<PackageReference Include="SharpZipLib" Version="1.4.2" />
</ItemGroup>


Loading…
Cancel
Save