Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DigitsRecognitionNeuralNetwork.ipynb throws Exception of type 'System.OutOfMemoryException' #5

Open
alexhiggins732 opened this issue Jul 29, 2020 · 0 comments

Comments

@alexhiggins732
Copy link

alexhiggins732 commented Jul 29, 2020

Running the default docker DigitsRecognitionNeuralNetwork.ipynb throws an System.OutOfMemoryException when calling var mnist = await MnistModelLoader.LoadAsync("mnist", true);

OS: Windows 10 version 2204 (build 19041.421)
Docker version 19.03.8, build afacb8b
Host: Memory 16 GB

Steps to reproduce:

  1. docker run --name scisharp -it -p 8888:8888 scisharpstack/scisharpcube
  2. Browse to local host to authorize token http://127.0.0.1:8888/?token=[token]
  3. Browse to sample: http://127.0.0.1:8888/notebooks/samples/DigitsRecognitionNeuralNetwork.ipynb
  4. Click run on each block. A System.OutOfMemoryException is thrown when clicking run on the blockvar mnist = await MnistModelLoader.LoadAsync("mnist", true);

Stack Trace:
Exception of type 'System.OutOfMemoryException' was thrown.
at System.Array.InternalCreate(Void* elementType, Int32 rank, Int32* pLengths, Int32* pLowerBounds)
at System.Array.CreateInstance(Type elementType, Int32[] lengths)
at NumSharp.Backends.TypedArrayStorage.Allocate(Shape shape, Type dtype)
at NumSharp.Backends.DefaultEngine.Multiply(NDArray x, NDArray y)
at Tensorflow.Hub.MnistDataSet..ctor(NDArray images, NDArray labels, Type dataType, Boolean reshape)
at Tensorflow.Hub.MnistModelLoader.LoadAsync(ModelLoadSetting setting)
at Tensorflow.Hub.MnistModelLoader.LoadAsync(String trainDir, Boolean oneHot, Nullable1 trainSize, Nullable1 validationSize, Nullable1 testSize)
at Submission#10.

Additional Information: The Hello World and Linear Regression samples run without issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant