Implement the 2 empty function bodies in specs/ml/layers/dropout_layer.t27 - #4061
Merged
Merged
Conversation
…gnatures and tests - Updated function signatures to match specifications: * forward(input: []const f32, output: []f32, mask: []bool, training: bool, config: DropoutConfig) -> void * backward(grad_output: []const f32, mask: []const bool, grad_input: []f32, config: DropoutConfig) -> void - Implemented dropout logic: * During training: randomly drop neurons based on mask, optionally scale during training * During inference: scale all neurons by (1 - dropout_probability) * Backward pass: gradients flow through kept neurons, zero for dropped neurons - Added proper tests for both functions with correct parameter passing - Used while loop syntax for iteration as required by T27 language Closes #3700
gHashTag
enabled auto-merge
September 17, 2026 06:50
This was referenced Sep 17, 2026
Merged
Contributor
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3700
Opened from the bee branch
queen-3700, which was pushed but never turned into a pull request. Every changed path is inside the boundary the issue declares:specs/ml/layers/dropout_layer.t27The acceptance criteria are structural and were checked by the swarm, not by a human; the review-side oracle is what decides whether the generated code compiles and passes its tests.