Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove scan for pre-marking of nodes #166

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

chiragtyagi2003
Copy link

@chiragtyagi2003 chiragtyagi2003 commented Mar 25, 2024

Added recursion to track nodes while backpropagation in back! function.

PR Checklist

  • Tests are added
  • Documentation, if applicable

src/back.jl Outdated
Comment on lines 70 to 71
ref = getproperty(x, :ref, 0) # Get the ref count of x, default to 0 if not available
grad = getproperty(x, :grad, nothing) # Get the gradient of x, default to nothing if not available
Copy link
Member

Choose a reason for hiding this comment

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

This syntax for getproperty is not supported. Type ?getproperty at the REPL to see how to properly use this function.

Copy link
Author

Choose a reason for hiding this comment

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

Okay, Thanks.

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.

2 participants