尝试在内存映射中训练模型时出现 JVM 错误 DL4J 完全错误:

问题描述

我在使用 DL4J 时遇到了障碍。当我尝试在内存映射中训练我的模型时,它只会导致 JVM 错误。我正在使用 DL4J 1.0.0 beta-6(beta 7 对一些我无法解决的源代码问题大惊小怪)

如果需要,我会发布我的其余源代码。我知道内存映射与 JVM 一起工作的方式是一个“概念性兔子洞”。我也知道 JVM 错误无法解决

WorkspaceConfiguration mmap = WorkspaceConfiguration.builder()
    .initialSize(1000000000)
    .policyLocation(LocationPolicy.MMAP)
    .build();

//.............................................................................

try ( MemoryWorkspace ws = Nd4j.getWorkspaceManager().getAndActivateWorkspace(mmap,"M2")) {
    model.fit(dsi);
}

我该怎么办?我完全不知道如何解决这个问题。

完全错误

    #
    # A Fatal error has been detected by the Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006e753800,pid=27336,tid=25676
    #
    # JRE version: Java(TM) SE Runtime Environment (16.0.1+9) (build 16.0.1+9-24)
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (16.0.1+9-24,mixed mode,sharing,tiered,compressed oops,compressed class ptrs,g1 gc,windows-amd64)
    # Problematic frame:
    # [thread 12844 also had an error]
    [thread 18452 also had an error]
    [thread 2036 also had an error]
    [thread 9712 also had an error]
    [thread 21996 also had an error]
    [thread 14232 also had an error]
    [thread 23364 also had an error]
    C  [libopenblas_nolapack.dll+0xf93800]
    #
    # No core dump will be written. Minidumps are not enabled by default on client versions of Windows
    #
    # An error report file with more information is saved as:
    # C:\Local Files\Code\Java\Projects\AI\DeepLearning4J\projects\Dl4JTest\hs_err_pid27336.log
    #
    # If you would like to submit a bug report,please visit:
    #   https://bugreport.java.com/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)