Skip to content

Conversation

@FrostML
Copy link
Contributor

@FrostML FrostML commented Aug 20, 2021

PR types

Breaking changes

PR changes

APIs

Description

因 develop 升级,使 paddle.sum 对齐 numpy 和 pytorch 行为,在输入类型是 [bool, int32, int64] 且未指明 dtype 的时候,输出的类型会被默认设置成 int64,是一个不兼容升级,导致 FasterTransformer 这边调用报错。
之前的行为是,如果没有指明 dtype,输出的类型将与输入的类型一致。
相关 PR:PaddlePaddle #34313

@FrostML FrostML requested a review from guoshengCS August 20, 2021 06:56
Copy link
Contributor

@guoshengCS guoshengCS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FrostML FrostML merged commit 9602532 into PaddlePaddle:develop Aug 20, 2021
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

Successfully merging this pull request may close these issues.

2 participants