|
|
|
@ -39,7 +39,7 @@ int Arithmetic::InferShape(std::vector<tensor::Tensor *> inputs_, std::vector<te
|
|
|
|
|
|
|
|
|
|
auto input_shape0 = input0->shape();
|
|
|
|
|
auto input_shape1 = input1->shape();
|
|
|
|
|
|
|
|
|
|
auto format = input0->GetFormat();
|
|
|
|
|
in_shape0_.resize(5);
|
|
|
|
|
in_shape1_.resize(5);
|
|
|
|
|
out_shape_.resize(5);
|
|
|
|
@ -57,6 +57,7 @@ int Arithmetic::InferShape(std::vector<tensor::Tensor *> inputs_, std::vector<te
|
|
|
|
|
}
|
|
|
|
|
in_shape1_[i] = input_shape1[i];
|
|
|
|
|
}
|
|
|
|
|
format = input0->GetFormat();
|
|
|
|
|
} else if (input_shape0.size() > input_shape1.size()) {
|
|
|
|
|
ndim_ = input_shape0.size();
|
|
|
|
|
auto fill_dim_num = input_shape0.size() - input_shape1.size();
|
|
|
|
@ -93,7 +94,7 @@ int Arithmetic::InferShape(std::vector<tensor::Tensor *> inputs_, std::vector<te
|
|
|
|
|
}
|
|
|
|
|
output_shape.push_back(out_shape_[i]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
output->SetFormat(format);
|
|
|
|
|
output->set_shape(output_shape);
|
|
|
|
|
output->set_data_type(input0->data_type());
|
|
|
|
|
return RET_OK;
|
|
|
|
|