I don’t change anything except that I add the maven dependency for Cuda.
CPU:
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 0 ms; iteration 15; iteration time: 417 ms; samples/sec: 306,954; batches/sec: 2,398;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 16 is 1.056962203589254
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 0 ms; iteration 16; iteration time: 431 ms; samples/sec: 296,984; batches/sec: 2,320;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 17 is 1.0990315867560574
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 0 ms; iteration 17; iteration time: 412 ms; samples/sec: 310,680; batches/sec: 2,427;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 18 is 1.067337314499658
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 0 ms; iteration 18; iteration time: 443 ms; samples/sec: 288,939; batches/sec: 2,257;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 19 is 1.0821172207474876
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 0 ms; iteration 19; iteration time: 424 ms; samples/sec: 301,887; batches/sec: 2,358;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 20 is 1.059284853091354
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 0 ms; iteration 20; iteration time: 419 ms; samples/sec: 305,489; batches/sec: 2,387;
GPU:
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 301 ms; iteration 10; iteration time: 433 ms; samples/sec: 295,612; batches/sec: 2,309;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 11 is 1.1342023435993043
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 219 ms; iteration 11; iteration time: 418 ms; samples/sec: 306,220; batches/sec: 2,392;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 12 is 1.1255240634763897
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 156 ms; iteration 12; iteration time: 204 ms; samples/sec: 627,451; batches/sec: 4,902;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 13 is 1.1135302663130682
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 330 ms; iteration 13; iteration time: 380 ms; samples/sec: 336,842; batches/sec: 2,632;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 14 is 1.0928231754740074
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 301 ms; iteration 14; iteration time: 349 ms; samples/sec: 366,762; batches/sec: 2,865;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 15 is 1.1150627790913594
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 300 ms; iteration 15; iteration time: 348 ms; samples/sec: 367,816; batches/sec: 2,874;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 16 is 1.1025744730292892
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 305 ms; iteration 16; iteration time: 353 ms; samples/sec: 362,606; batches/sec: 2,833;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 17 is 1.10063111863199
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 331 ms; iteration 17; iteration time: 385 ms; samples/sec: 332,468; batches/sec: 2,597;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 18 is 1.0874097650678176
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 314 ms; iteration 18; iteration time: 361 ms; samples/sec: 354,571; batches/sec: 2,770;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 19 is 1.069476212327744
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 313 ms; iteration 19; iteration time: 362 ms; samples/sec: 353,591; batches/sec: 2,762;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 20 is 1.0825679057827262
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 299 ms; iteration 20; iteration time: 439 ms; samples/sec: 291,572; batches/sec: 2,278;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 21 is 1.0689636559527844
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 215 ms; iteration 21; iteration time: 434 ms; samples/sec: 294,931; batches/sec: 2,304;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 22 is 1.0424455383996136
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 151 ms; iteration 22; iteration time: 195 ms; samples/sec: 656,410; batches/sec: 5,128;
GPU maxLength=128
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 126 is 0.5322405647156705
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 146 ms; iteration 126; iteration time: 175 ms; samples/sec: 731,429; batches/sec: 5,714;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 127 is 0.5878828953263133
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 149 ms; iteration 127; iteration time: 177 ms; samples/sec: 723,164; batches/sec: 5,650;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 128 is 0.5516416211974764
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 164 ms; iteration 128; iteration time: 192 ms; samples/sec: 666,667; batches/sec: 5,208;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 129 is 0.5697628848869166
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 152 ms; iteration 129; iteration time: 179 ms; samples/sec: 715,084; batches/sec: 5,587;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 130 is 0.5671227672971232
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 150 ms; iteration 130; iteration time: 245 ms; samples/sec: 522,449; batches/sec: 4,082;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 131 is 0.5923680057108589
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 85 ms; iteration 131; iteration time: 225 ms; samples/sec: 568,889; batches/sec: 4,444;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 132 is 0.4552335921238525
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 39 ms; iteration 132; iteration time: 73 ms; samples/sec: 1753,425; batches/sec: 13,699;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 133 is 0.5849684142028828
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 142 ms; iteration 133; iteration time: 171 ms; samples/sec: 748,538; batches/sec: 5,848;
[main] INFO org.deeplearning4j.optimize.listeners.ScoreIterationListener - Score at iteration 134 is 0.5591012373442021
[main] INFO org.deeplearning4j.optimize.listeners.PerformanceListener - ETL: 147 ms; iteration 134; iteration time: 175 ms; samples/sec: 731,429; batches/sec: 5,714;
[main] ERROR org.deeplearning4j.util.CrashReportingUtil - >>> Out of Memory Exception Detected. Memory crash dump written to: C:\Users\Marco\Documents\intellij\ProseminarTest\dl4j-memory-crash-dump-1620395836156_1.txt
[main] WARN org.deeplearning4j.util.CrashReportingUtil - Memory crash dump reporting can be disabled with CrashUtil.crashDumpsEnabled(false) or using system property -Dorg.deeplearning4j.crash.reporting.enabled=false
[main] WARN org.deeplearning4j.util.CrashReportingUtil - Memory crash dump reporting output location can be set with CrashUtil.crashDumpOutputDirectory(File) or using system property -Dorg.deeplearning4j.crash.reporting.directory=<path>
Exception in thread "main" java.lang.OutOfMemoryError: Failed to allocate memory within limits: totalBytes (130M + 32640M) > maxBytes (7262M)
at org.bytedeco.javacpp.Pointer.deallocator(Pointer.java:678)
at org.deeplearning4j.cuda.BaseCudnnHelper$DataCache.<init>(BaseCudnnHelper.java:125)
at org.deeplearning4j.cuda.convolution.CudnnConvolutionHelper.preOutput(CudnnConvolutionHelper.java:516)
at org.deeplearning4j.nn.layers.convolution.ConvolutionLayer.preOutput(ConvolutionLayer.java:401)
at org.deeplearning4j.nn.layers.convolution.Convolution1DLayer.preOutput(Convolution1DLayer.java:181)
at org.deeplearning4j.nn.layers.convolution.ConvolutionLayer.activate(ConvolutionLayer.java:489)
at org.deeplearning4j.nn.layers.convolution.Convolution1DLayer.activate(Convolution1DLayer.java:228)
at org.deeplearning4j.nn.layers.AbstractLayer.activate(AbstractLayer.java:258)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.ffToLayerActivationsInWs(MultiLayerNetwork.java:1134)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.computeGradientAndScore(MultiLayerNetwork.java:2746)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.computeGradientAndScore(MultiLayerNetwork.java:2704)
at org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:170)
at org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize(StochasticGradientDescent.java:63)
at org.deeplearning4j.optimize.Solver.optimize(Solver.java:52)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fitHelper(MultiLayerNetwork.java:1715)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1636)
Crashreport
https://gist.github.com/ForceUpdate1/bf9a05faeede4854e27cd274aa50f8dc