Introduce shaped output tensor accessor for named circuit outputs#212
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdds a new public method ChangesTensor Array Output Lookup
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Named circuit outputs were only retrievable as one flattened vector, which is insufficient for consumers that need to compare a partial result against the matching region of the expected tensor: group split dispatch returns one group's output, and validating it requires slicing the expected tensor along the concatenation axis, which needs shape information. Adds an accessor returning the shaped arrays per requested name alongside the existing flattened form.
Summary by CodeRabbit