Skip to content

[DLFL25] Replace unsafe .data usage with .detach() in autograd tutorial#863

Open
haiyih wants to merge 1 commit intoAtcold:masterfrom
haiyih:fix-autograd-data-usage-clean
Open

[DLFL25] Replace unsafe .data usage with .detach() in autograd tutorial#863
haiyih wants to merge 1 commit intoAtcold:masterfrom
haiyih:fix-autograd-data-usage-clean

Conversation

@haiyih
Copy link
Copy Markdown

@haiyih haiyih commented Dec 25, 2025

Using .data inside control flow can silently break autograd graphs. This updates the tutorial to use the recommended .detach() API.

Using .data inside control flow can silently break autograd graphs. This updates the tutorial to use the recommended .detach() API.
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@haiyih haiyih changed the title Replace unsafe .data usage with .detach() in autograd tutorial [DLFL25] Replace unsafe .data usage with .detach() in autograd tutorial Dec 25, 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