The requested array exceeds the preset

9 visualizaciones (últimos 30 días)
悦 金
悦 金 el 31 de En. de 2021
Editada: Kiran Felix Robert el 3 de Feb. de 2021
% 1. Create the net
net = newgrnn(sample_train_input,sample_train_output,0.01);
toc;
% 2. Simulate the validation set
output_valid = sim(net,sample_valid_input);
For the need, I build a grnn network.
sample_train_input is an array of 8*151066
sample_train_output is an array of 1*151066
sample_valid_input is an array of 8*18883
When executing “output_valid = sim(net,sample_valid_input)”, it prompts "The requested 151066x18883 (21.3GB) array exceeds the preset maximum array size. Creating arrays larger than this limit may take longer and will cause MATLAB to be unresponsive."
I have looked at the settings in the preset-matlab array size limit, I have set it to 100%, but I still have this problem, how can I fix it?

Respuestas (1)

Kiran Felix Robert
Kiran Felix Robert el 3 de Feb. de 2021
Editada: Kiran Felix Robert el 3 de Feb. de 2021
Hi,
This issue arises due to RAM Limitations.
  • As you have already set the Maximum array size to 100% try running the following command in the command window to check if the available memory is greater than the required 21GB.
memory;

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by