-
Notifications
You must be signed in to change notification settings - Fork 98
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
Metadata #26
Comments
As I understand, you would like the meta data stored in the tape ? I have thought of putting source code file and line numbers in the tape, detecting infinities and nans, and then reporting the corresponding source code. You have a different use for the extra information in the tape, and I should understand it. Perhaps the right way to do it is to add yet another argument to the Independent function that signals more information about the recording; see |
At the moment I do need that feature anymore (I'm in different company now). |
Does the base class object know the information when to operation is recorded. Perhaps it would be possible to extend the base class specifications to include a template function that has a default definition that is empty and that the compiler can know is empty. |
The variable name/units is known at the moment the operation is performed during the taping process. |
I am moving this issue to discussion #84 |
Hello Brad,
Is there a chance of CppAD supporting metadata associated with each variable.
One could call something like
This information could then be used to store information such as variable names and units.
An additional call to new functions (e.g.,
process_metadata_forward()
andprocess_metadata_reverse()
) could be added incppad/local/forward0sweep.hpp
cppad/local/forward1sweep.hpp
cppad/local/forward2sweep.hpp
cppad/local/reverse_sweep.hpp
By default
process_metadata_*()
functions would be empty (no performance penalty would occur for types such as double/float).These functions could be specialized for specific data types such as
CppAD::cg::CG<>
.This would allow me to recover the additional information that I need which cannot currently be saved in the tape.
Best regards,
João Leal
The text was updated successfully, but these errors were encountered: