summarylogtreecommitdiffstats
path: root/protobuf-23.patch
blob: 1eff81e115098275d67b8b0f23f59f775edf7a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/caffe2/onnx/backend.cc b/caffe2/onnx/backend.cc
index d1607ea97f4..02104268bcc 100644
--- a/caffe2/onnx/backend.cc
+++ b/caffe2/onnx/backend.cc
@@ -1796,19 +1796,19 @@ void Caffe2Backend::BuildTensorFillingOp(
           c2_op, c2_values, onnx_tensor);
       // NOLINTNEXTLINE(bugprone-branch-clone)
     } else if (onnx_tensor.data_type() == TensorProto::BOOL) {
-      ConvertIntegralValueToCaffe2<::google::protobuf::int8>(
+      ConvertIntegralValueToCaffe2<::google::protobuf::int32>(
           c2_op, c2_values, onnx_tensor);
     } else if (onnx_tensor.data_type() == TensorProto::UINT8) {
-      ConvertIntegralValueToCaffe2<::google::protobuf::uint8>(
+      ConvertIntegralValueToCaffe2<::google::protobuf::uint32>(
           c2_op, c2_values, onnx_tensor);
     } else if (onnx_tensor.data_type() == TensorProto::INT8) {
-      ConvertIntegralValueToCaffe2<::google::protobuf::int8>(
+      ConvertIntegralValueToCaffe2<::google::protobuf::int32>(
           c2_op, c2_values, onnx_tensor);
     } else if (onnx_tensor.data_type() == TensorProto::UINT16) {
-      ConvertIntegralValueToCaffe2<::google::protobuf::uint16>(
+      ConvertIntegralValueToCaffe2<::google::protobuf::uint32>(
           c2_op, c2_values, onnx_tensor);
     } else if (onnx_tensor.data_type() == TensorProto::INT16) {
-      ConvertIntegralValueToCaffe2<::google::protobuf::int16>(
+      ConvertIntegralValueToCaffe2<::google::protobuf::int32>(
           c2_op, c2_values, onnx_tensor);
     } else if (onnx_tensor.data_type() == TensorProto::INT32) {
       ConvertIntegralValueToCaffe2<::google::protobuf::int32>(