Algorithm class initial
- to copy or not to copy?
#2077
MargaretDuff
started this conversation in
General
Replies: 1 comment
-
Similarly, CGLS uses Potentially by using this, a copy of the acquisition data could be saved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the algorithm class
initial
is 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 :)
Beta Was this translation helpful? Give feedback.
All reactions