SciSharp / TensorFlow.NET

.NET Standard bindings for Google's TensorFlow for developing, training and deploying Machine Learning models in C# and F#.
https://scisharp.github.io/tensorflow-net-docs
Apache License 2.0
3.17k stars 506 forks source link

Regularizer addition and fixes #1248

Closed SchoenTannenbaum closed 1 month ago

SchoenTannenbaum commented 1 month ago

Addresses load issue in : https://github.com/SciSharp/TensorFlow.NET/issues/1247

AsakusaRinne commented 1 month ago

Hi, the overall looks good but could you please move your modification of the unit test to the following position?

https://github.com/SciSharp/TensorFlow.NET/blob/master/test/TensorFlowNET.Keras.UnitTest/Model/ModelLoadTest.cs#L134

In this unit test, the model is saved and then loaded. Thus both the saving and loading for the regularizer could be tested.