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.23k stars 517 forks source link

test: Gradient descent optimizer tests #1184

Closed novikov-alexander closed 10 months ago

Oceania2018 commented 1 year ago
 Failed TestBasic [1 s]
  Error Message:
   Test method Tensorflow.Keras.UnitTest.Optimizers.GradientDescentOptimizerTest.TestBasic threw exception: 
System.NullReferenceException: Object reference not set to an instance of an object.
  Stack Trace:
      at TensorFlowNET.UnitTest.PythonTest.evaluate[T](Tensor tensor) in D:\a\TensorFlow.NET\TensorFlow.NET\test\TensorFlowNET.UnitTest\PythonTest.cs:line 245
   at Tensorflow.Keras.UnitTest.Optimizers.GradientDescentOptimizerTest.TestBasicGeneric[T]() in D:\a\TensorFlow.NET\TensorFlow.NET\test\TensorFlowNET.UnitTest\Training\GradientDescentOptimizerTests.cs:line 40
   at Tensorflow.Keras.UnitTest.Optimizers.GradientDescentOptimizerTest.TestBasic() in D:\a\TensorFlow.NET\TensorFlow.NET\test\TensorFlowNET.UnitTest\Training\GradientDescentOptimizerTests.cs:line 62
Wanglongzhi2001 commented 11 months ago

@novikov-alexander Please fix the ci error.

novikov-alexander commented 10 months ago

@novikov-alexander Please fix the ci error.

Not clear how they interfer. I'll try to debug.

novikov-alexander commented 10 months ago

@Wanglongzhi2001 That's not clear.. I'm afraid that LinearRegression is flaky one. I just put my tests near and it caused some fail inside. But there are no visible reasons. Moreover it stopped to fail when I changed namespace of my tests.

novikov-alexander commented 10 months ago

All checks have passed

Wanglongzhi2001 commented 10 months ago

@Oceania2018 LGTM.