Skip to content

Commit

Permalink
Remove EIGEN_DEVICE_FUNC from defaulted ctors to avoid compiler warni…
Browse files Browse the repository at this point in the history
…ngs.
  • Loading branch information
nluehr authored and pull[bot] committed May 8, 2022
1 parent 26560f5 commit 1211360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/core/kernels/cwise_ops.h
Expand Up @@ -253,7 +253,7 @@ struct scalar_left : private Binary {
const Tin* left;
TinPacket left_packet; // initialized iff is_scalar_in_host_memory == true

EIGEN_DEVICE_FUNC inline scalar_left(const scalar_left& other) = default;
inline scalar_left(const scalar_left& other) = default;

template <typename... Args>
EIGEN_DEVICE_FUNC inline explicit scalar_left(const Tin* c, Args... args)
Expand Down Expand Up @@ -304,7 +304,7 @@ struct scalar_right : private Binary {
const Tin* right;
TinPacket right_packet; // initialized iff is_scalar_in_host_memory == true

EIGEN_DEVICE_FUNC inline scalar_right(const scalar_right& other) = default;
inline scalar_right(const scalar_right& other) = default;

template <typename... Args>
EIGEN_DEVICE_FUNC inline explicit scalar_right(const Tin* c, Args... args)
Expand Down

0 comments on commit 1211360

Please sign in to comment.