You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error Message:
Test method TensorFlowNET.UnitTest.Gradient.GradientTest.testDependentYs threw exception:
System.NotImplementedException:
Stack Trace:
at Tensorflow.NumPy.np.allclose(NDArray a, NDArray b, Double rtol, Double atol, Boolean equal_nan) in /home/runner/work/TensorFlow.NET/TensorFlow.NET/src/TensorFlowNET.Core/Numpy/Numpy.cs:line 69
at TensorFlowNET.UnitTest.PythonTest.assertAllClose(Double value, NDArray array2, Double eps) in /home/runner/work/TensorFlow.NET/TensorFlow.NET/test/Tensorflow.UnitTest/PythonTest.cs:line 142
at TensorFlowNET.UnitTest.Gradient.GradientTest.testDependentYs() in /home/runner/work/TensorFlow.NET/TensorFlow.NET/test/TensorFlowNET.Graph.UnitTest/GradientTest/GradientTest.cs:line 600
Error Message:
Test method TensorFlowNET.UnitTest.Gradient.GradientTest.testDependentYs threw exception:
System.NotImplementedException:
Stack Trace:
at Tensorflow.NumPy.np.allclose(NDArray a, NDArray b, Double rtol, Double atol, Boolean equal_nan) in /home/runner/work/TensorFlow.NET/TensorFlow.NET/src/TensorFlowNET.Core/Numpy/Numpy.cs:line 69
at TensorFlowNET.UnitTest.PythonTest.assertAllClose(Double value, NDArray array2, Double eps) in /home/runner/work/TensorFlow.NET/TensorFlow.NET/test/Tensorflow.UnitTest/PythonTest.cs:line 142
at TensorFlowNET.UnitTest.Gradient.GradientTest.testDependentYs() in /home/runner/work/TensorFlow.NET/TensorFlow.NET/test/TensorFlowNET.Graph.UnitTest/GradientTest/GradientTest.cs:line 600
Yes, one of the tests wasn't fully enabled before (in one of my previous PRs). Now the assertion works correctly and the error above is fixed.
@AsakusaRinne how to get value of Ndarray if an Ndarray is a scalar?
You can just use int a = nd; for implication converting.
Thank you! I was confused by the fact that .ToArray() doesn't work properly on a scalar. May be this is correct behaviour and it should throw exceptions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.