Skip to content

Give copies of a config their own tapes - #338

Open
shravanngoswamii wants to merge 1 commit into
JuliaDiff:masterfrom
shravanngoswamii:sg/config-deepcopy
Open

shravanngoswamii wants to merge 1 commit into
JuliaDiff:masterfrom
shravanngoswamii:sg/config-deepcopy

Conversation

@shravanngoswamii

@shravanngoswamii shravanngoswamii commented Nov 16, 2026 •

Copy link
Copy Markdown

Fixes #337.

A config's tapes look the same between calls as during a recording, so the config copies them first and a tracked value only follows its tape when that tape is copied too.

Values copied during a recording, as in #327, stay on the tape.

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.79%. Comparing base (25afc77) to head (11d3180).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #338      +/-   ##
==========================================
+ Coverage   94.78%   94.79%   +0.01%     
==========================================
  Files          19       19              
  Lines        1705     1710       +5     
==========================================
+ Hits         1616     1621       +5     
  Misses         89       89              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

deepcopy of a GradientConfig keeps the original's tracked input, so the copy returns zero gradients

1 participant