Reenable more verbose printing of stack
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 839
- Forks
- 220
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 14
Description
Description
The method stan::var::print_stack() does currently only print the size of the stack. This was different in the past.
It would be very handy to have more verbose information for debugging the reverse mode call stack.
Expected Output
I have no strong opinion in what exactly should be printed and especially, I can not judge what is doable.
But since the behavior was different in the past one may can restore a similar behavior.
Related discourse:
https://discourse.mc-stan.org/t/current-state-of-stan-print-stack/26248
Current Version:
v4.3.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the implementation of stan::var::print_stack() and review the related Discourse discussion for the historical behavior. Determine what useful reverse-mode call-stack details can be restored; done means print_stack() provides more than the stack size for debugging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100