-
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
【Paddle Tensor 第二期 常用API复数类型支持 NO.6】 添加 full 函数复数类型支持 #70277
base: develop
Are you sure you want to change the base?
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
elif isinstance(fill_value, (builtins.complex)): | ||
dtype = "complex128" | ||
else: | ||
dtype = paddle.get_default_dtype() |
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.
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.
如果需要修改默认dtype,特别是bool的,我可以再添加。
我应该可以修复遗留的test问题。应该只要给没有指定 dtype 的调用加上一个dtype="float32"
就行。
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.
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.
那么默认 dtype 我就不动了。我去把bool
加上去。
@HydrogenSulfate |
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.
- full不是已经支持了复数了吗?
- 这个PR解决了什么问题呢?
PR Category
User Experience
PR Types
New features
Description
更简洁的实现。