case PoolingParameter::AVE:
{
AvgPool2DOpAttributes attributes_avg;
+ attributes_avg.data_format = DataFormat::NCHW;
convertPoolingParam(params, input->getShape(), attributes_avg);
result = createOp<ops::AvgPool2DOp>(input, attributes_avg)->getOutput(0);
break;
case PoolingParameter::MAX:
{
MaxPool2DOpAttributes attributes_max;
+ attributes_max.data_format = DataFormat::NCHW;
convertPoolingParam(params, input->getShape(), attributes_max);
result = createOp<ops::MaxPool2DOp>(input, attributes_max)->getOutput(0);
break;