Skip to content
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

support nested list of dict inputs #8876

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

deepllz
Copy link
Contributor

@deepllz deepllz commented Aug 6, 2024

PR types

Bug fixes

PR changes

Others

Description

Others

Copy link

paddle-bot bot commented Aug 6, 2024

Thanks for your contribution!


return local_datas

for key, dtensors in inputs.items():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/PaddlePaddle/PaddleNLP/blob/develop/paddlenlp/utils/nested.py#L25-L37

参考这种写,定义函数,递归遍历,可能清晰一些。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已线下讨论

Copy link
Collaborator

@From00 From00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZHUI ZHUI merged commit 4cf0806 into PaddlePaddle:develop Aug 6, 2024
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants