Remove unused variable. (#11043)

This commit is contained in:
Edward Chen 2022-03-29 14:11:07 -07:00 committed by GitHub
parent 6c005bfdbc
commit 8f456735d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,6 @@ Status PoolOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder,
const auto& input_defs = node.InputDefs();
bool is_global_pooling = false;
bool is_average_pool = false;
if (op_type == "GlobalAveragePool") {
is_global_pooling = true;
coreml_pool->set_type(COREML_SPEC::PoolingLayerParams_PoolingType_AVERAGE);
@ -50,7 +49,6 @@ Status PoolOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder,
is_global_pooling = true;
coreml_pool->set_type(COREML_SPEC::PoolingLayerParams_PoolingType_MAX);
} else if (op_type == "AveragePool") {
is_average_pool = true;
coreml_pool->set_type(COREML_SPEC::PoolingLayerParams_PoolingType_AVERAGE);
} else if (op_type == "MaxPool") {
coreml_pool->set_type(COREML_SPEC::PoolingLayerParams_PoolingType_MAX);