Bug Description
Using the GPU for medium sized training tasks causes invalid OpenCL state (CL_OUT_OF_RESOURCES).
Steps to Reproduce
- Create a model
- Use the MNIST dataset
- Start the training using the GPU
Expected Behavior
Loss should decrease over time and the GPU should speed up training.
Actual Behavior
Brain4J crashes after few computed batches.
What actually happened (including any error messages, stack traces, or console output).
Environment
- brain4j version: 3.0.0
- Java version: 21
- Operating system: Windows
Additional Context
MLP with 784 -> 128 (ReLU) -> 64 (ReLU) -> 10 (Softmax), MNIST dataset, 128 batch size.
Bug Description
Using the GPU for medium sized training tasks causes invalid OpenCL state (CL_OUT_OF_RESOURCES).
Steps to Reproduce
Expected Behavior
Loss should decrease over time and the GPU should speed up training.
Actual Behavior
Brain4J crashes after few computed batches.
What actually happened (including any error messages, stack traces, or console output).
Environment
Additional Context
MLP with 784 -> 128 (ReLU) -> 64 (ReLU) -> 10 (Softmax), MNIST dataset, 128 batch size.