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

添加文档,解释PyDataProvider中的input_types的dim是什么意思 #373

Closed
reyoung opened this issue Nov 7, 2016 · 1 comment
Closed

Comments

@reyoung
Copy link
Collaborator

reyoung commented Nov 7, 2016

现在的PyDataProvider中,其实没有解释input_types的dimension究竟是什么意思。这导致用户会有一些迷惑。

现在文档的地址是 中文英文
文档的代码地址是 中文英文

相关的issue #369

@luotao1
Copy link
Contributor

luotao1 commented Apr 28, 2017

v2 api不使用PyDataProvider,对应的文档就不更新了。

@luotao1 luotao1 closed this as completed Apr 28, 2017
zhhsplendid pushed a commit to zhhsplendid/Paddle that referenced this issue Sep 25, 2019
WAYKEN-TSE pushed a commit to WAYKEN-TSE/Paddle that referenced this issue Dec 6, 2024
解决使用fp16时出现的数据类型不匹配问题。

pipe = WebUIStableDiffusionPipeline.from_pretrained(
    "runwayml/stable-diffusion-v1-5", paddle_dtype=paddle.float16
)

具体错误信息如下:
ValueError: (InvalidArgument) The type of data we are trying to retrieve
(float16) does not match the type of data (float32) currently contained
in the container.
[Hint: Expected dtype() == phi::CppTypeToDataType<T>::Type(), but
received dtype():10 != phi::CppTypeToDataType<T>::Type():15.] (at
/paddle/paddle/phi/core/[dense_tensor.cc:161](http://dense_tensor.cc:161/))
  [operator < linear > error]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File
"/home/work/speed_up_framework/PaddleMIX/ppdiffusers/examples/community/webui_demo.py",
line 27, in <module>
    img = pipe(
File
"/home/work/miniconda3/envs/paddle/lib/python3.10/site-packages/decorator.py",
line 232, in fun
    return caller(func, *(extras + args), **kw)
File
"/home/work/miniconda3/envs/paddle/lib/python3.10/site-packages/paddle/base/dygraph/base.py",
line 352, in _decorate_function
    return func(*args, **kwargs)
File
"/home/work/speed_up_framework/PaddleMIX/ppdiffusers/examples/community/webui_stable_diffusion.py",
line 1121, in __call__
    raise ValueError(e)
ValueError: (InvalidArgument) The type of data we are trying to retrieve
(float16) does not match the type of data (float32) currently contained
in the container.
[Hint: Expected dtype() == phi::CppTypeToDataType<T>::Type(), but
received dtype():10 != phi::CppTypeToDataType<T>::Type():15.] (at
/paddle/paddle/phi/core/[dense_tensor.cc:161](http://dense_tensor.cc:161/))
  [operator < linear > error]

---------

Co-authored-by: 王杰 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants