Skip to content

dependency graph for tensors #37

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

Open
martinjrobins opened this issue Jan 3, 2025 · 0 comments
Open

dependency graph for tensors #37

martinjrobins opened this issue Jan 3, 2025 · 0 comments

Comments

@martinjrobins
Copy link
Owner

martinjrobins commented Jan 3, 2025

currently dependencies between tensors is handled crudely, a tensor is dependent on either t, or u, or constant. This means that if you are calculating rhs, you might also calculate tensors that are only used to calculate out, for example.

Need a better way of tracking dependencies so that any function, rhs or out or other, only needs to calculate the tensors that it depends on

Could just keep all tensors in a vec, and then have a vec of indices for each tensor indicating its depenencies. Maybe a vec of (tensor_idx, tensor_elmt_idx) to indicate which element of which tensor it depends on

@martinjrobins martinjrobins mentioned this issue Jan 3, 2025
2 tasks
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

No branches or pull requests

1 participant