Skip to content

Commit ba1ddb4

Browse files
committed
Set SGD default value.
1 parent b18343c commit ba1ddb4

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
lines changed

src/TensorFlowNET.Core/Keras/IOptimizerApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ IOptimizer RMSprop(float learning_rate = 0.001f,
6363
bool centered = false,
6464
string name = "RMSprop");
6565

66-
IOptimizer SGD(float learning_rate, float momentum);
66+
IOptimizer SGD(float learning_rate = 0.01f, float momentum = 0f);
6767
}
6868
}

src/TensorFlowNET.Core/Tensorflow.Binding.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<AssemblyName>Tensorflow.Binding</AssemblyName>
66
<RootNamespace>Tensorflow</RootNamespace>
77
<TargetTensorFlow>2.11.0</TargetTensorFlow>
8-
<Version>0.110.2</Version>
8+
<Version>0.110.3</Version>
99
<LangVersion>10.0</LangVersion>
1010
<Nullable>enable</Nullable>
1111
<Authors>Haiping Chen, Eli Belash, Yaohui Liu, Meinrad Recheis</Authors>
1212
<Company>SciSharp STACK</Company>
1313
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
14-
<Copyright>Apache 2.0, Haiping Chen $([System.DateTime]::UtcNow.ToString(yyyy))</Copyright>
14+
<Copyright>Apache 2.0, Haiping Chen since 2018</Copyright>
1515
<RepositoryUrl>https://github.com/SciSharp/TensorFlow.NET</RepositoryUrl>
1616
<RepositoryType>git</RepositoryType>
1717
<PackageProjectUrl>http://scisharpstack.org</PackageProjectUrl>
@@ -20,7 +20,7 @@
2020
<Description>Google's TensorFlow full binding in .NET Standard.
2121
Building, training and infering deep learning models.
2222
https://tensorflownet.readthedocs.io</Description>
23-
<AssemblyVersion>0.110.1.0</AssemblyVersion>
23+
<AssemblyVersion>0.110.3.0</AssemblyVersion>
2424
<PackageReleaseNotes>
2525
tf.net 0.110.x and above are based on tensorflow native 2.11.0
2626
* Support RNN, LSTM model.
@@ -43,7 +43,7 @@ https://tensorflownet.readthedocs.io</Description>
4343
tf.net 0.10x.x aligns with TensorFlow v2.10.x native library.
4444
tf.net 0.11x.x aligns with TensorFlow v2.11.x native library.
4545
</PackageReleaseNotes>
46-
<FileVersion>0.110.2.0</FileVersion>
46+
<FileVersion>0.110.3.0</FileVersion>
4747
<PackageLicenseFile>LICENSE</PackageLicenseFile>
4848
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
4949
<PackageOutputPath>packages</PackageOutputPath>
@@ -172,7 +172,7 @@ https://tensorflownet.readthedocs.io</Description>
172172
</ItemGroup>
173173

174174
<ItemGroup>
175-
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.148" />
175+
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.149" />
176176
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
177177
<PackageReference Include="OneOf" Version="3.0.255" />
178178
<PackageReference Include="Protobuf.Text" Version="0.7.1" />

src/TensorFlowNET.Keras/Optimizers/OptimizerApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public IOptimizer RMSprop(float learning_rate = 0.001f,
7171
Name = name
7272
});
7373

74-
public IOptimizer SGD(float learning_rate, float momentum)
74+
public IOptimizer SGD(float learning_rate = 0.01f, float momentum = 0f)
7575
=> new SGD(learning_rate, momentum);
7676
}
7777
}

src/TensorFlowNET.Keras/Tensorflow.Keras.csproj

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,30 @@
77
<Nullable>enable</Nullable>
88
<RootNamespace>Tensorflow.Keras</RootNamespace>
99
<Platforms>AnyCPU;x64</Platforms>
10-
<Version>0.11.2</Version>
10+
<Version>0.11.3</Version>
1111
<Authors>Haiping Chen</Authors>
1212
<Product>Keras for .NET</Product>
13-
<Copyright>Apache 2.0, Haiping Chen 2023</Copyright>
13+
<Copyright>Apache 2.0, Haiping Chen since 2018</Copyright>
1414
<PackageId>TensorFlow.Keras</PackageId>
1515
<PackageProjectUrl>https://github.com/SciSharp/TensorFlow.NET</PackageProjectUrl>
1616
<PackageIconUrl>https://avatars3.githubusercontent.com/u/44989469?s=200&amp;v=4</PackageIconUrl>
1717
<RepositoryUrl>https://github.com/SciSharp/TensorFlow.NET</RepositoryUrl>
18-
<PackageReleaseNotes>Keras for .NET is a C# version of Keras ported from the python version.
19-
20-
* Support CIFAR-10 dataset in keras.datasets.
21-
* Support Conv2D functional API.
22-
* Support BatchNormalization layer.
23-
* Building keras model in subclass, functional and sequential api
24-
* Implemented backward_function.
25-
* Support model.load_weights.
26-
* Add Subtract layer
27-
* Text preprocessing
28-
* Preprocessing.timeseries_dataset_from_array
29-
* Fixed memory leak for YOLOv3 model.
30-
* Support RNN and LSTM models</PackageReleaseNotes>
18+
<PackageReleaseNotes>
19+
Keras for .NET is a C# version of Keras ported from the python version.
20+
21+
* Support CIFAR-10 dataset in keras.datasets.
22+
* Support Conv2D functional API.
23+
* Support BatchNormalization layer.
24+
* Building keras model in subclass, functional and sequential api
25+
* Implemented backward_function.
26+
* Support model.load_weights.
27+
* Add Subtract layer
28+
* Text preprocessing
29+
* Preprocessing.timeseries_dataset_from_array
30+
* Fixed memory leak for YOLOv3 model.
31+
* Support RNN and LSTM models
32+
* Support Transformer model
33+
</PackageReleaseNotes>
3134
<Description>Keras for .NET
3235

3336
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
3942
<RepositoryType>Git</RepositoryType>
4043
<SignAssembly>False</SignAssembly>
4144
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
42-
<AssemblyVersion>0.11.2.0</AssemblyVersion>
43-
<FileVersion>0.11.2.0</FileVersion>
45+
<AssemblyVersion>0.11.3.0</AssemblyVersion>
46+
<FileVersion>0.11.3.0</FileVersion>
4447
<PackageLicenseFile>LICENSE</PackageLicenseFile>
4548
<Configurations>Debug;Release;GPU</Configurations>
4649
</PropertyGroup>
@@ -140,7 +143,7 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
140143
</PropertyGroup>
141144

142145
<ItemGroup>
143-
<PackageReference Include="HDF5-CSharp" Version="1.17.0" />
146+
<PackageReference Include="HDF5-CSharp" Version="1.18.0" />
144147
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.149" />
145148
<PackageReference Include="SharpZipLib" Version="1.4.2" />
146149
</ItemGroup>

0 commit comments

Comments
 (0)