internal code change
PiperOrigin-RevId: 305495596 Change-Id: I35d379bb956c2b786e288209b8e6b366698660b1
This commit is contained in:
parent
3009d8c3ff
commit
8c0ac31fa8
|
@ -53,7 +53,7 @@ void FullyConnectedOpBuilder::FillCoreMLWeights() {
|
|||
layer_->mutable_innerproduct()->set_outputchannels(weights_->dims->data[0]);
|
||||
const float* weights_data = GetTensorData<float>(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<float>(bias_);
|
||||
std::copy(bias_data, bias_data + NumElements(bias_),
|
||||
proto2::RepeatedFieldBackInserter(layer_->mutable_innerproduct()
|
||||
google::protobuf::RepeatedFieldBackInserter(layer_->mutable_innerproduct()
|
||||
->mutable_bias()
|
||||
->mutable_floatvalue()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue