|
|
|
@ -123,7 +123,7 @@ STATUS TfliteDepthwiseConv2DParser::Parse(const std::unique_ptr<tflite::Operator
|
|
|
|
|
|
|
|
|
|
std::vector<tflite::TensorT *> weight_tensors{weight_tensor.get()};
|
|
|
|
|
|
|
|
|
|
if (RET_OK != ParseTensor(weight_tensors, tfliteModelBuffer, tensor_cache, TF_CONST)) {
|
|
|
|
|
if (RET_OK != ParseTensor(weight_tensors, tfliteModelBuffer, tensor_cache, TF_CONST, true)) {
|
|
|
|
|
MS_LOG(ERROR) << "parse weight failed";
|
|
|
|
|
return RET_ERROR;
|
|
|
|
|
}
|
|
|
|
@ -133,7 +133,7 @@ STATUS TfliteDepthwiseConv2DParser::Parse(const std::unique_ptr<tflite::Operator
|
|
|
|
|
auto bias_index = tflite_op->inputs[2];
|
|
|
|
|
const auto &bias_tensor = tflite_tensors[bias_index];
|
|
|
|
|
std::vector<tflite::TensorT *> bias_tensors{bias_tensor.get()};
|
|
|
|
|
if (RET_OK != ParseTensor(bias_tensors, tfliteModelBuffer, tensor_cache, TF_CONST)) {
|
|
|
|
|
if (RET_OK != ParseTensor(bias_tensors, tfliteModelBuffer, tensor_cache, TF_CONST, false)) {
|
|
|
|
|
MS_LOG(ERROR) << "parse bias failed";
|
|
|
|
|
return RET_ERROR;
|
|
|
|
|
}
|
|
|
|
|