Closed XuehaiPan closed 1 year ago
Patch and project coverage have no change.
Comparison is base (
d1e85f8
) 100.00% compared to head (ac35c71
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Describe your changes in detail.
This PR adds the missing procedure to add the current path into the
paths
result. The process is the same as the switch case forPyTreeKind::Leaf
.https://github.com/metaopt/optree/blob/d1e85f8975f132968e23fa70406d7353adb84155/src/treespec/flatten.cpp#L234-L242
Motivation and Context
Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. You can use the syntax
close #15213
if this solves the issue #15213Fixes #75.
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Checklist
Go over all the following points, and put an
x
in all the boxes that apply. If you are unsure about any of these, don't hesitate to ask. We are here to help!make format
. (required)make lint
. (required)make test
pass. (required)