aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tensorflow-common/fix-windows-build.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tensorflow-common/fix-windows-build.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tensorflow-common/fix-windows-build.patch')
-rw-r--r--vcpkg/ports/tensorflow-common/fix-windows-build.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/tensorflow-common/fix-windows-build.patch b/vcpkg/ports/tensorflow-common/fix-windows-build.patch
new file mode 100644
index 0000000..9f7f8de
--- /dev/null
+++ b/vcpkg/ports/tensorflow-common/fix-windows-build.patch
@@ -0,0 +1,25 @@
+diff --git a/tensorflow/core/kernels/depthtospace_op.cc b/tensorflow/core/kernels/depthtospace_op.cc
+--- a/tensorflow/core/kernels/depthtospace_op.cc
++++ b/tensorflow/core/kernels/depthtospace_op.cc
+@@ -112,7 +112,7 @@
+ auto Tinput = input.tensor<T, kDims>();
+ auto Toutput = outputs_tensor->tensor<T, kDims>();
+
+- if (std::is_same<Device, GPUDevice>::value) {
++ if constexpr (std::is_same<Device, GPUDevice>::value) {
+ if (is_int8x4) {
+ // NCHW_VECT_C with 4 x qint8 can be treated as NCHW int32.
+ auto Tinput_v = input.template reinterpret_last_dimension<int32, 4>();
+
+diff --git a/tensorflow/core/kernels/spacetodepth_op.cc b/tensorflow/core/kernels/spacetodepth_op.cc
+--- a/tensorflow/core/kernels/spacetodepth_op.cc
++++ b/tensorflow/core/kernels/spacetodepth_op.cc
+@@ -126,7 +126,7 @@
+ output_width, output_depth),
+ &outputs_tensor));
+
+- if (std::is_same<Device, GPUDevice>::value) {
++ if constexpr (std::is_same<Device, GPUDevice>::value) {
+ using RT = typename RawType<T>::type;
+ if (data_format_ == FORMAT_NCHW_VECT_C) {
+ // NCHW_VECT_C with 4 x qint8 can be treated as NCHW int32.