File tree 5 files changed +26
-0
lines changed
tensorflow_addons/custom_ops
5 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,14 @@ limitations under the License.
23
23
#include " tensorflow/core/framework/op_kernel.h"
24
24
#include " tensorflow/core/framework/register_types.h"
25
25
#include " tensorflow/core/framework/types.h"
26
+ #include " tensorflow/core/public/version.h"
27
+ #if TF_MAJOR_VERSION == 2 && TF_MINOR_VERSION >= 16
28
+ #include " Eigen/Core"
29
+ #include " unsupported/Eigen/CXX11/Tensor"
30
+ #else
26
31
#include " third_party/eigen3/Eigen/Core"
27
32
#include " third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
33
+ #endif
28
34
29
35
namespace tensorflow {
30
36
namespace addons {
Original file line number Diff line number Diff line change @@ -26,8 +26,13 @@ limitations under the License.
26
26
#include " tensorflow/core/framework/op_kernel.h"
27
27
#include " tensorflow/core/framework/tensor_types.h"
28
28
#include " tensorflow/core/platform/types.h"
29
+ #include " tensorflow/core/public/version.h"
29
30
#include " tensorflow/core/util/work_sharder.h"
31
+ #if TF_MAJOR_VERSION == 2 && TF_MINOR_VERSION >= 16
32
+ #include " unsupported/Eigen/CXX11/Tensor"
33
+ #else
30
34
#include " third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
35
+ #endif
31
36
32
37
namespace tensorflow {
33
38
namespace addons {
Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ limitations under the License.
21
21
#include " tensorflow/core/framework/op_kernel.h"
22
22
#include " tensorflow/core/framework/tensor_types.h"
23
23
#include " tensorflow/core/platform/types.h"
24
+ #include " tensorflow/core/public/version.h"
25
+ #if TF_MAJOR_VERSION == 2 && TF_MINOR_VERSION >= 16
26
+ #include " unsupported/Eigen/CXX11/Tensor"
27
+ #else
24
28
#include " third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
29
+ #endif
25
30
26
31
namespace tensorflow {
27
32
namespace addons {
Original file line number Diff line number Diff line change @@ -32,8 +32,13 @@ limitations under the License.
32
32
#include " tensorflow/core/framework/types.h"
33
33
#include " tensorflow/core/platform/logging.h"
34
34
#include " tensorflow/core/platform/macros.h"
35
+ #include " tensorflow/core/public/version.h"
35
36
#include " tensorflow/core/util/work_sharder.h"
37
+ #if TF_MAJOR_VERSION == 2 && TF_MINOR_VERSION >= 16
38
+ #include " unsupported/Eigen/CXX11/Tensor"
39
+ #else
36
40
#include " third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
41
+ #endif
37
42
38
43
namespace tensorflow {
39
44
namespace addons {
Original file line number Diff line number Diff line change @@ -18,7 +18,12 @@ limitations under the License.
18
18
19
19
#include " tensorflow/core/framework/tensor_types.h"
20
20
#include " tensorflow/core/platform/types.h"
21
+ #include " tensorflow/core/public/version.h"
22
+ #if TF_MAJOR_VERSION == 2 && TF_MINOR_VERSION >= 16
23
+ #include " unsupported/Eigen/CXX11/Tensor"
24
+ #else
21
25
#include " third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
26
+ #endif
22
27
23
28
namespace tensorflow {
24
29
class OpKernelContext ;
You can’t perform that action at this time.
0 commit comments