We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from treevalue import FastTreeValue def func(x): return FastTreeValue({ 'x': x, 'y': x ** 2, }) f = FastTreeValue({ 'x': func, 'y': { 'z': func, } }) v = FastTreeValue({'x': 2, 'y': {'z': 34}}) r1 = f(v) print(r1)
The output is
<FastTreeValue 0x7f13ff6491f0> ├── 'x' --> <FastTreeValue 0x7f13ff6491c0> │ ├── 'x' --> 2 │ └── 'y' --> 4 └── 'y' --> <FastTreeValue 0x7f13ff649220> └── 'z' --> <FastTreeValue 0x7f13ff649130> ├── 'x' --> 34 └── 'y' --> 1156
But the correct output should be
<FastTreeValue 0x7f13ff6498b0> ├── 'x' --> <FastTreeValue 0x7f13ff649a00> │ ├── 'x' --> 2 │ └── 'y' --> 4 └── 'y' --> <FastTreeValue 0x7f13ff6499a0> └── 'z' --> <FastTreeValue 0x7f13ff649910> ├── 'x' --> 34 └── 'y' --> 1156
The text was updated successfully, but these errors were encountered:
fix(hansbug): fix bug of #82, add more unittests
80d4e9b
Merge pull request #83 from opendilab/fix/treelize
947e137
HansBug
Successfully merging a pull request may close this issue.
The output is
But the correct output should be
The text was updated successfully, but these errors were encountered: