Skip to content

Add caching and restoration of feature data in Reuse class#495

Open
BenjaminMidtvedt wants to merge 1 commit into
mg/update_DTEx212from
bm/DTEx212_fix
Open

Add caching and restoration of feature data in Reuse class#495
BenjaminMidtvedt wants to merge 1 commit into
mg/update_DTEx212from
bm/DTEx212_fix

Conversation

@BenjaminMidtvedt

Copy link
Copy Markdown
Collaborator

Fixes a bug with dt.Reuse: cached image outputs were reused, but the sampled property state of the wrapped feature graph was not restored. dt.TakeProperties(...) reads those property nodes, so on reused calls it saw no position, returned [], and then Stack collapsed the single image output back to a plain ndarray.

We now snapshot and restore the wrapped feature graph's dependency data alongside each output.
I added regression tests to cover this bug,

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