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
When running LogisticRegression Example, I got an Exception:
System.InvalidOperationException: Can't construct NDCoordinatesIncrementor with an empty shape.
at NumSharp.Utilities.NDCoordinatesIncrementor..ctor(Shape& shape)
at NumSharp.NDArray._extract_indices(NDArray[] mindices, Boolean isCollapsed, NDArray out)
at Tensorflow.Hub.MnistDataSet.GetNextBatch(Int32 batch_size, Boolean fake_data, Boolean shuffle)
at TensorFlowNET.Examples.LogisticRegression.Run() in TensorFlow.NET-Examples/src/TensorFlowNET.Examples/BasicModels/LogisticRegression.cs:line 92
at TensorFlowNET.Examples.Program.Main(String[] args) in TensorFlow.NET-Examples/src/TensorFlowNET.Examples/Program.cs:line 75
A fix to this example could be modifying this line to the following:
var start = i * batch_size;
var end = (i + 1) * batch_size;
var (batch_xs, batch_ys) = mnist.GetNextBatch(mnist.Train.Data, mnist.Train.Labels, start, end);
Activity