cost 99 ms
Deep Java Library - NDArray set 方法不允许修改现有数组 - Deep Java Library - NDArray set method does not allow modification of existing array

我已经开始使用Deep Java 库及其底层数组操作包: ndarray 。 问题很简单。 我想修改现有 NDArray 的第i个元素,但是我不能那样做。 如何将第i个元素设置为特定值? 该文档提到了许多set 方法。 这是我尝试过的最小可重现示例: 这是抛出的错误: java.lang.Unsup ...

如何在第 1 个输入的节点中修复 ai.djl.engine.EngineException 不兼容的属性:预期为 int32,得到 float32 - How to fix ai.djl.engine.EngineException incompatible attr in node at 1-th input: expected int32, got float32

我开始使用 Deep Java Library (DJL) 和 Spring boot 进行深度学习。 当我训练我的数据集时,我得到了这个错误 我的完整代码他在她的github 那就是我的训练 请有人可以帮我解决我的错误? 那是完整的消息错误 对不起我的英语不好。 我还在学习。 ...

2022-05-01 09:08:50   1   165    java / djl  
如何在 VS Code 中为简单的 Java 项目(即没有任何构建工具的非托管文件夹)添加 Maven 依赖项? - How do I add a Maven dependency in VS Code for a simple Java project (i.e. an unmanaged folder without any build tools)?

我正在尝试使用Deep Java 库(DJL) 为Mario-AI-Framework构建一个 AI model。 I'm using VS Code with the Java extension, as this is part of a larger project, mainly in ...

用 djl 训练 model - train a model with djl

晚上好。 我从 DJL 开始。 我的代码源在这里https://github.com/ngandji/green_anthill.git有人可以告诉我的代码有什么问题! 我通过这个https://github.com/deepjavalibrary/djl/tree/master/jupyter/ ...

Pytorch Djl java 加载异常 - Pytorch Djl java loading exception

我在独立部署模式下运行 Flink 作业,使用 Java djl 加载 pytorch model。 model 成功加载,我可以通过 Flink Rest API 取消作业。 但是,当我再次尝试启动 flink 作业时,它会抛出, 它需要重新启动独立部署才能再次加载。 是否可以在关闭作业请求的同 ...

代码运行时出现异常,但在 DJL 上调试代码时出现异常 - Getting exception when code runs but no when code is being debugged on DJL

我正在使用 DJL 作为 Java 中 Numpy 的包装器库来对矩阵执行复杂的操作,我在尝试执行NDArray#any()调用时遇到问题。 我正在通过一系列操作创建一个矩阵,然后我想测试它是否包含任何true值。 导致该问题的代码片段如下: 例外是: 奇怪的是,如果我一步步调试代码和 go,操作正 ...

无法在我的应用程序中使用 ai.djl.modality.cv.util.BufferedImageUtils - not able to use ai.djl.modality.cv.util.BufferedImageUtils in my application

我是 AI 技术的新手。我添加了我的项目所需的每个 DJL。 但是当我go使用ai.djl.modality.cv.util.BufferedImageUtils。 我无法将它导入到我的项目中。它显示创建局部变量 BuffredImageUtils 时出错。 这是我在我的项目中添加的所有 grad ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM