Skip to content

Conversation

@deepllz
Copy link
Collaborator

@deepllz deepllz commented Aug 6, 2024

PR types

Bug fixes

PR changes

Others

Description

Others

@paddle-bot
Copy link

paddle-bot bot commented Aug 6, 2024

Thanks for your contribution!


return local_datas

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

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
Collaborator 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
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