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

normal不支持fp16 #51681

Closed
linjieccc opened this issue Mar 15, 2023 · 1 comment · Fixed by #51684
Closed

normal不支持fp16 #51681

linjieccc opened this issue Mar 15, 2023 · 1 comment · Fixed by #51684
Assignees

Comments

@linjieccc
Copy link
Contributor

bug描述 Describe the Bug

import paddle

paddle.set_default_dtype("float16")

paddle.tensor.normal(
    mean=0.0,
    std=0.02,
    shape=[10, 10]
)

Traceback:

  File "/usr/local/lib/python3.7/dist-packages/paddle/tensor/random.py", line 473, in normal
    return gaussian(shape=shape, mean=mean, std=std, name=name)
  File "/usr/local/lib/python3.7/dist-packages/paddle/tensor/random.py", line 241, in gaussian
    .format(op_type_for_check, dtype))
TypeError: gaussian/standard_normal/randn/normal only supports [float32, float64], but the default dtype is float16

其他补充信息 Additional Supplementary Information

No response

@paddle-bot
Copy link

paddle-bot bot commented Mar 15, 2023

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants