Answer the question
In order to leave comments, you need to log in
How to deal with memory in java?
So, I decided to play around with neural networks, for this I chose the FANN library, made a small network, trained it, everything seems to be fine, well, I decided what little things I will do right away with a network that will recognize Linux Torvald)) (in the pictures 240X320) I did everything , what you need and moved on to creating the network itself and training it, I create:
layerList.add(Layer.create(76800, ActivationFunction.FANN_SIGMOID_SYMMETRIC, 0.01f));
layerList.add(Layer.create(153600, ActivationFunction.FANN_SIGMOID_SYMMETRIC, 0.01f));
layerList.add(Layer.create(153600, ActivationFunction.FANN_SIGMOID_SYMMETRIC, 0.01f));
layerList.add(Layer.create(153600, ActivationFunction.FANN_SIGMOID_SYMMETRIC, 0.01f));
layerList.add(Layer.create(1, ActivationFunction.FANN_SIGMOID_SYMMETRIC, 0.01f));
And what do you think happened? Correctly ! jvm ran out of memory. Answer the question
In order to leave comments, you need to log in
1. How to allocate jvm more RAM (I have 16gb on my computer)
2. Are there ways to work with memory more economically?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question