From 8c0ac31fa869419e1134db03389398a6f6b1e0a6 Mon Sep 17 00:00:00 2001 From: Taehee Jeong Date: Wed, 8 Apr 2020 09:42:28 -0700 Subject: [PATCH] internal code change PiperOrigin-RevId: 305495596 Change-Id: I35d379bb956c2b786e288209b8e6b366698660b1 --- .../delegates/coreml/builders/fully_connected_op_builder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/lite/experimental/delegates/coreml/builders/fully_connected_op_builder.cc b/tensorflow/lite/experimental/delegates/coreml/builders/fully_connected_op_builder.cc index 8ca2c442ed1..2efc767d703 100644 --- a/tensorflow/lite/experimental/delegates/coreml/builders/fully_connected_op_builder.cc +++ b/tensorflow/lite/experimental/delegates/coreml/builders/fully_connected_op_builder.cc @@ -53,7 +53,7 @@ void FullyConnectedOpBuilder::FillCoreMLWeights() { layer_->mutable_innerproduct()->set_outputchannels(weights_->dims->data[0]); const float* weights_data = GetTensorData(weights_); std::copy(weights_data, weights_data + NumElements(weights_), - proto2::RepeatedFieldBackInserter(layer_->mutable_innerproduct() + google::protobuf::RepeatedFieldBackInserter(layer_->mutable_innerproduct() ->mutable_weights() ->mutable_floatvalue())); } @@ -63,7 +63,7 @@ void FullyConnectedOpBuilder::FillCoreMLBias() { layer_->mutable_innerproduct()->set_hasbias(true); const float* bias_data = GetTensorData(bias_); std::copy(bias_data, bias_data + NumElements(bias_), - proto2::RepeatedFieldBackInserter(layer_->mutable_innerproduct() + google::protobuf::RepeatedFieldBackInserter(layer_->mutable_innerproduct() ->mutable_bias() ->mutable_floatvalue())); }