mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Remove unused variable. (#11043)
This commit is contained in:
parent
6c005bfdbc
commit
8f456735d1
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue