Update Eigen to b9362fb8f76fbba805b56afbc0f5de0a279631b5
PiperOrigin-RevId: 289694259 Change-Id: I56496b926388b47332fe279be6d873f4f12a5de3
This commit is contained in:
parent
cb2ca1e812
commit
ef2e468403
|
@ -195,11 +195,11 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
|
||||||
name = "eigen_archive",
|
name = "eigen_archive",
|
||||||
build_file = clean_dep("//third_party:eigen.BUILD"),
|
build_file = clean_dep("//third_party:eigen.BUILD"),
|
||||||
patch_file = clean_dep("//third_party/eigen3:gpu_packet_math.patch"),
|
patch_file = clean_dep("//third_party/eigen3:gpu_packet_math.patch"),
|
||||||
sha256 = "33664252213ec4583a6cc2332e75b78e6870855346b4e1063509e8839560dda2",
|
sha256 = "e81b91b22f1c7155deea4c457548ecdbd698cfed493444fceb7f9b5d797bb9a9",
|
||||||
strip_prefix = "eigen-9254974115b6d4db305a1c7a2ef23ebc8a4a819a",
|
strip_prefix = "eigen-b9362fb8f76fbba805b56afbc0f5de0a279631b5",
|
||||||
urls = [
|
urls = [
|
||||||
"https://storage.googleapis.com/mirror.tensorflow.org/gitlab.com/libeigen/eigen/-/archive/9254974115b6d4db305a1c7a2ef23ebc8a4a819a/eigen-9254974115b6d4db305a1c7a2ef23ebc8a4a819a.tar.gz",
|
"https://storage.googleapis.com/mirror.tensorflow.org/gitlab.com/libeigen/eigen/-/archive/b9362fb8f76fbba805b56afbc0f5de0a279631b5/eigen-b9362fb8f76fbba805b56afbc0f5de0a279631b5.tar.gz",
|
||||||
"https://gitlab.com/libeigen/eigen/-/archive/9254974115b6d4db305a1c7a2ef23ebc8a4a819a/eigen-9254974115b6d4db305a1c7a2ef23ebc8a4a819a.tar.gz",
|
"https://gitlab.com/libeigen/eigen/-/archive/b9362fb8f76fbba805b56afbc0f5de0a279631b5/eigen-b9362fb8f76fbba805b56afbc0f5de0a279631b5.tar.gz",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -22,28 +22,3 @@
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
--- a/Eigen/src/Core/MathFunctions.h 2020-01-09 14:22:30.000000000 -0800
|
|
||||||
+++ b/Eigen/src/Core/MathFunctions.h 2020-01-09 16:35:29.000000000 -0800
|
|
||||||
@@ -442,9 +442,11 @@
|
|
||||||
{
|
|
||||||
EIGEN_STATIC_ASSERT((!NumTraits<Scalar>::IsComplex), NUMERIC_TYPE_MUST_BE_REAL)
|
|
||||||
#if EIGEN_HAS_CXX11_MATH
|
|
||||||
- EIGEN_USING_STD_MATH(rint);
|
|
||||||
-#endif
|
|
||||||
+ EIGEN_USING_STD_MATH(rint);
|
|
||||||
return rint(x);
|
|
||||||
+#else
|
|
||||||
+ return ::rint(x);
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -454,7 +456,7 @@
|
|
||||||
EIGEN_DEVICE_FUNC
|
|
||||||
static inline float run(const float& x)
|
|
||||||
{
|
|
||||||
- return rintf(x);
|
|
||||||
+ return ::rintf(x);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue