如何解决尝试在内存映射中训练模型时出现 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 举报,一经查实,本站将立刻删除。