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

[Yaml] Modify api and add unittests for full api final state. #41437

Merged
merged 7 commits into from
Apr 10, 2022

Conversation

2742195759
Copy link
Contributor

PR types

Others

PR changes

Others

Describe

modify api and add unittests for full api final state.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Apr 6, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

shape = utils.convert_shape_to_list(shape)
if not isinstance(dtype, core.VarDesc.VarType):
dtype = convert_np_dtype_to_dtype_(dtype)
assert out is None, "Final State mode don't support out is None."
Copy link
Contributor

Choose a reason for hiding this comment

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

是不是out为None,让跑老动态图比较好,至少不会挂

@@ -1170,6 +1168,9 @@ def _remove_if_exist(*dicts):
if name not in self._buffers:
self._non_persistable_buffer_names_set.add(name)
_buffers[name] = value
if not _buffers[name].name:
_buffers[name].name = unique_name.generate(
'_generated_var')
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'_generated_var')
if not value.name:
value.name = unique_name.generate( '_buffers_'+name)

Aurelius84
Aurelius84 previously approved these changes Apr 7, 2022
Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

LGTM

@Aurelius84 Aurelius84 merged commit 81c4072 into PaddlePaddle:develop Apr 10, 2022
douch pushed a commit to douch/Paddle that referenced this pull request Apr 10, 2022
…Paddle#41437)

* full api fix

* when out is None, go old dygraph mode

* fix

* add name for buffer

* fix by code review

* fix

* by static check
2742195759 added a commit to 2742195759/Paddle that referenced this pull request Apr 11, 2022
…Paddle#41437)

* full api fix

* when out is None, go old dygraph mode

* fix

* add name for buffer

* fix by code review

* fix

* by static check
@2742195759 2742195759 deleted the yaml_full branch April 11, 2022 03:23
phlrain pushed a commit that referenced this pull request Apr 11, 2022
#41618)

* full api fix

* when out is None, go old dygraph mode

* fix

* add name for buffer

* fix by code review

* fix

* by static check
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