PaddlePaddle / PaddleMIX

Paddle Multimodal Integration and eXploration, supporting mainstream multi-modal tasks, including end-to-end large-scale multi-modal pretrain models and diffusion model toolbox. Equipped with high performance and flexibility.
Apache License 2.0
239 stars 100 forks source link

Avoid use stringified dtype in PIR mode #504

Closed SigureMo closed 2 months ago

SigureMo commented 2 months ago

paddle.set_default_dtype 支持 paddle.dtype,不需要转换为字符串,而且在 PIR 模式下如果转换为字符串的话,目前还不是 paddle.float32 这种形式,我们不应该依赖于 __str__/__repr__ 这种用于 debug 的信息

paddle-bot[bot] commented 2 months ago

Thanks for your contribution!