Skip to content

Instantly share code, notes, and snippets.

@ragnarok22
Created June 12, 2018 22:27
Show Gist options
  • Save ragnarok22/4550fa765a1312058a042bd6ac3fc991 to your computer and use it in GitHub Desktop.
Save ragnarok22/4550fa765a1312058a042bd6ac3fc991 to your computer and use it in GitHub Desktop.
org.nd4j.linalg.exception.ND4JIllegalStateException: Failed to allocate [5913600000] bytes
at org.nd4j.linalg.cpu.nativecpu.CpuMemoryManager.allocate(CpuMemoryManager.java:35)
at org.nd4j.linalg.memory.abstracts.Nd4jWorkspace.alloc(Nd4jWorkspace.java:399)
at org.nd4j.linalg.memory.abstracts.Nd4jWorkspace.alloc(Nd4jWorkspace.java:299)
at org.nd4j.linalg.api.buffer.BaseDataBuffer.<init>(BaseDataBuffer.java:635)
at org.nd4j.linalg.api.buffer.FloatBuffer.<init>(FloatBuffer.java:65)
at org.nd4j.linalg.api.buffer.factory.DefaultDataBufferFactory.createFloat(DefaultDataBufferFactory.java:257)
at org.nd4j.linalg.factory.Nd4j.createBuffer(Nd4j.java:1481)
at org.nd4j.linalg.api.ndarray.BaseNDArray.<init>(BaseNDArray.java:261)
at org.nd4j.linalg.cpu.nativecpu.NDArray.<init>(NDArray.java:126)
at org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.createUninitialized(CpuNDArrayFactory.java:283)
at org.nd4j.linalg.factory.Nd4j.createUninitialized(Nd4j.java:5128)
at org.deeplearning4j.nn.layers.convolution.ConvolutionLayer.preOutput(ConvolutionLayer.java:346)
at org.deeplearning4j.nn.layers.convolution.ConvolutionLayer.activate(ConvolutionLayer.java:392)
at org.deeplearning4j.nn.layers.AbstractLayer.activate(AbstractLayer.java:255)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.outputOfLayerDetached(MultiLayerNetwork.java:1098)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.output(MultiLayerNetwork.java:2103)
at net.sf.jclal.deeplearning.evaluation.measure.DLEvaluation.<init>(DLEvaluation.java:40)
at net.sf.jclal.deeplearning.evaluation.measure.DLEvaluation.<init>(DLEvaluation.java:69)
at net.sf.jclal.deeplearning.classifier.DLClassifier.testModel(DLClassifier.java:297)
at net.sf.jclal.activelearning.querystrategy.AbstractQueryStrategy.testModel(AbstractQueryStrategy.java:308)
at net.sf.jclal.activelearning.scenario.AbstractScenario.evaluationTest(AbstractScenario.java:337)
at net.sf.jclal.activelearning.algorithm.ClassicalALAlgorithm.doEvaluationTest(ClassicalALAlgorithm.java:177)
at net.sf.jclal.activelearning.algorithm.ClassicalALAlgorithm.doIterate(ClassicalALAlgorithm.java:130)
at net.sf.jclal.activelearning.algorithm.AbstractALAlgorithm.execute(AbstractALAlgorithm.java:167)
at net.sf.jclal.deeplearning.evaluation.method.DLHoldOut.evaluate(DLHoldOut.java:52)
at net.sf.jclal.experiment.Experiment.executeJob(Experiment.java:90)
at net.sf.jclal.experiment.ExperimentThread.executeExperiment(ExperimentThread.java:73)
at net.sf.jclal.experiment.ExperimentThread.run(ExperimentThread.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at net.sf.jclal.activelearning.algorithm.ClassicalALAlgorithm.doEvaluationTest(ClassicalALAlgorithm.java:188)
at net.sf.jclal.activelearning.algorithm.ClassicalALAlgorithm.doIterate(ClassicalALAlgorithm.java:130)
at net.sf.jclal.activelearning.algorithm.AbstractALAlgorithm.execute(AbstractALAlgorithm.java:167)
at net.sf.jclal.deeplearning.evaluation.method.DLHoldOut.evaluate(DLHoldOut.java:52)
at net.sf.jclal.experiment.Experiment.executeJob(Experiment.java:90)
at net.sf.jclal.experiment.ExperimentThread.executeExperiment(ExperimentThread.java:73)
at net.sf.jclal.experiment.ExperimentThread.run(ExperimentThread.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment