November 2019
Intermediate to advanced
304 pages
8h 40m
English
DL4J has a dependency with JavaCPP that acts as a bridge between Java and C++: https://github.com/bytedeco/javacpp.
JavaCPP works on the basis of the -Xmx value set on the heap space (off-heap memory) and the overall memory consumption will not exceed this value. DL4J seeks help from the garbage collector and JavaCPP to deallocate memory.
For training sessions with large amounts of data involved, it is important to have more RAM for the off-heap memory space than for on-heap memory (JVM). Why? Because our datasets and computations are involved with INDArrays and are stored in the off-heap memory space.
It is important to identify the memory limits of running applications. The following some instances where the memory limit ...