Skip to content

Commit

Permalink
[Eager Bug fix]Fix Detection (#46147)
Browse files Browse the repository at this point in the history
* fix linspace error in amp

* fix log

* fix amp error

* Revert "Simplify size op impl (#45808)"

This reverts commit c252b1d.

* fix_seg

* fix detection

Co-authored-by: Chen Weihang <sunny_cwh@163.com>
  • Loading branch information
JiabinYang and chenwhql authored Sep 20, 2022
1 parent f9b90dd commit 192e7cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions paddle/phi/kernels/cpu/scale_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ PD_REGISTER_KERNEL(scale,
float,
double,
phi::dtype::bfloat16,
phi::dtype::float16,
uint8_t,
int8_t,
int16_t,
Expand Down
2 changes: 2 additions & 0 deletions paddle/phi/kernels/funcs/eigen/scale.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */
#include "paddle/phi/common/bfloat16.h"
#include "paddle/phi/common/complex.h"
#include "paddle/phi/common/float16.h"
#include "paddle/phi/kernels/funcs/eigen/eigen_function.h"

namespace phi {
Expand Down Expand Up @@ -41,6 +42,7 @@ struct EigenScale<Eigen::DefaultDevice, T> {
template struct EigenScale<Eigen::DefaultDevice, float>;
template struct EigenScale<Eigen::DefaultDevice, double>;
template struct EigenScale<Eigen::DefaultDevice, dtype::bfloat16>;
template struct EigenScale<Eigen::DefaultDevice, dtype::float16>;
template struct EigenScale<Eigen::DefaultDevice, uint8_t>;
template struct EigenScale<Eigen::DefaultDevice, int8_t>;
template struct EigenScale<Eigen::DefaultDevice, int16_t>;
Expand Down

0 comments on commit 192e7cc

Please sign in to comment.