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

paddle.transpose不支持unit8类型 #547

Open
yangjian1218 opened this issue Dec 30, 2021 · 2 comments
Open

paddle.transpose不支持unit8类型 #547

yangjian1218 opened this issue Dec 30, 2021 · 2 comments
Assignees

Comments

@yangjian1218
Copy link

在使用人脸增强时,传入的如果是np.ndarray数据,需要img = paddle.to_tensor(img).transpose([2, 0, 1]) , 为什么不支持uint8_t类型,虽然可以乘以1.0来转换使得生效,但是如果中间有其他操作,可能导致数值超过255.还是希望官方优化,支持unit8类型吧

@LielinJiang
Copy link
Collaborator

感谢您的反馈,我们会尽快在框架中支持这个功能

@jerrywgz
Copy link
Collaborator

可以更新最新paddle版本

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

No branches or pull requests

3 participants