-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/fluid/layers/tensor.py
Outdated
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." |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'_generated_var') | |
if not value.name: | |
value.name = unique_name.generate( '_buffers_'+name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…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
…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
#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
PR types
Others
PR changes
Others
Describe
modify api and add unittests for full api final state.