Algorithm class initial - to copy or not to copy?
#2077
MargaretDuff
started this conversation in
General
Replies: 2 comments 1 reply
|
Similarly, CGLS uses Potentially by using this, a copy of the acquisition data could be saved |
0 replies
|
I would give the user the option to copy or reuse memory. Flexibility is good. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In the algorithm class
initialis usually copied internally in the algorithm so it is left unmodified e.g. in FISTA and ISTA:CIL/Wrappers/Python/cil/optimisation/algorithms/FISTA.py
Lines 147 to 148 in 98860db
This is memory expensive - it means this memory can't be reused - however, it might make more sense to users for their initial values to be left unmodified.
Looking for any thoughts or opinions :)
All reactions