Skip to content

Correct Forward pass and gradient test passing#24

Merged
tomiock merged 2 commits into
mainfrom
dag_node
Jul 7, 2025
Merged

Correct Forward pass and gradient test passing#24
tomiock merged 2 commits into
mainfrom
dag_node

Conversation

@tomiock

@tomiock tomiock commented Jul 7, 2025

Copy link
Copy Markdown
Owner
  • decorated function used for the forward pass
  • correct model initialization
  • explicit computation graph construction according to first forward pass
  • gradient test passing

Comment thread macrograd/engine.py
Comment on lines +544 to +549
if node.type == NodeType.PARAM:
color_node = "blue"
if node.type == NodeType.CONST:
color_node = "green"
if node.type == NodeType.COMPUTED:
color_node = "grey"

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dogshit code here

@tomiock tomiock merged commit 354ed73 into main Jul 7, 2025
2 checks passed
@tomiock tomiock mentioned this pull request Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant