2023-02-06 18:41:44 +01:00
|
|
|
diff --git a/tensorflow/tsl/lib/monitoring/percentile_sampler.cc b/tensorflow/tsl/lib/monitoring/percentile_sampler.cc
|
2021-08-19 00:18:12 +02:00
|
|
|
index b7c22ae77ba..d0ba7b48b4b 100644
|
2023-02-06 18:41:44 +01:00
|
|
|
--- a/tensorflow/tsl/lib/monitoring/percentile_sampler.cc
|
|
|
|
+++ b/tensorflow/tsl/lib/monitoring/percentile_sampler.cc
|
2020-04-07 04:10:12 +02:00
|
|
|
@@ -29,7 +29,8 @@ namespace monitoring {
|
|
|
|
void PercentileSamplerCell::Add(double sample) {
|
|
|
|
uint64 nstime = EnvTime::NowNanos();
|
|
|
|
mutex_lock l(mu_);
|
|
|
|
- samples_[next_position_] = {nstime, sample};
|
|
|
|
+ samples_[next_position_].nstime = nstime;
|
|
|
|
+ samples_[next_position_].value = sample;
|
|
|
|
++next_position_;
|
|
|
|
if (TF_PREDICT_FALSE(next_position_ >= samples_.size())) {
|
|
|
|
next_position_ = 0;
|
|
|
|
@@ -73,7 +74,9 @@ Percentiles PercentileSamplerCell::value() const {
|
|
|
|
size_t index = std::min<size_t>(
|
|
|
|
static_cast<size_t>(percentile * pct_samples.num_samples / 100.0),
|
|
|
|
pct_samples.num_samples - 1);
|
|
|
|
- PercentilePoint pct = {percentile, samples[index].value};
|
|
|
|
+ PercentilePoint pct;
|
|
|
|
+ pct.percentile = percentile;
|
|
|
|
+ pct.value = samples[index].value;
|
|
|
|
pct_samples.points.push_back(pct);
|
|
|
|
}
|
|
|
|
}
|
2021-03-25 23:01:44 +01:00
|
|
|
diff --git a/third_party/eigen3/eigen_archive.BUILD b/third_party/eigen3/eigen_archive.BUILD
|
2021-08-19 00:18:12 +02:00
|
|
|
index 5514f774c35..1a38f76f4e9 100644
|
2021-03-25 23:01:44 +01:00
|
|
|
--- a/third_party/eigen3/eigen_archive.BUILD
|
|
|
|
+++ b/third_party/eigen3/eigen_archive.BUILD
|
2021-08-19 00:18:12 +02:00
|
|
|
@@ -53,6 +53,13 @@ cc_library(
|
2021-03-25 23:01:44 +01:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
+# For backward compatibility.
|
|
|
|
+alias(
|
|
|
|
+ name = "eigen",
|
|
|
|
+ actual=":eigen3",
|
|
|
|
+ visibility = ["//visibility:public"],
|
|
|
|
+)
|
|
|
|
+
|
|
|
|
filegroup(
|
|
|
|
name = "eigen_header_files",
|
2021-08-19 00:18:12 +02:00
|
|
|
srcs = EIGEN_HEADERS,
|
2023-03-09 06:02:34 +01:00
|
|
|
diff --git a/tensorflow/lite/delegates/gpu/build_defs.bzl b/tensorflow/lite/delegates/gpu/build_defs.bzl
|
|
|
|
index 462ec7c2218..f2b583a4cbd 100644
|
|
|
|
--- a/tensorflow/lite/delegates/gpu/build_defs.bzl
|
|
|
|
+++ b/tensorflow/lite/delegates/gpu/build_defs.bzl
|
|
|
|
@@ -9,7 +9,7 @@ def nativewindow_linkopts():
|
|
|
|
# return min_supported_ndk_api("26", ["-lnativewindow"])
|
|
|
|
# copybara:uncomment_end
|
|
|
|
# copybara:comment_begin(oss-only)
|
|
|
|
- return ["-lnativewindow"]
|
|
|
|
+ return []
|
|
|
|
# copybara:comment_end
|
|
|
|
|
|
|
|
def gpu_delegate_linkopts():
|
2023-04-27 19:48:19 +02:00
|
|
|
diff --git a/tensorflow/tsl/platform/windows/error_windows.cc b/tensorflow/tsl/platform/windows/error_windows.cc
|
|
|
|
index fea37ddb2ea..4070ea55425 100644
|
|
|
|
--- a/tensorflow/tsl/platform/windows/error_windows.cc
|
|
|
|
+++ b/tensorflow/tsl/platform/windows/error_windows.cc
|
|
|
|
@@ -15,8 +15,8 @@ limitations under the License.
|
|
|
|
|
|
|
|
#include "tensorflow/tsl/platform/windows/error_windows.h"
|
|
|
|
|
|
|
|
-#include <Windows.h>
|
|
|
|
#include <Winsock2.h>
|
|
|
|
+#include <Windows.h>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|