padding_after);
auto result =
- createOp<ops::Conv2DOp>(input, kernel, Shape(strides), padding_before, padding_after)
- ->getOutput(0);
+ createOp<ops::Conv2DOp>(input, kernel, strides, padding_before, padding_after)->getOutput(0);
result = createOp<ops::AddOp>(result, bias)->getOutput(0);
return {addFusedActivation(result, opts->fused_activation_function())};
}
padding_after);
auto result =
- createOp<ops::DepthwiseConv2DOp>(input, kernel, Shape(strides), padding_before, padding_after)
+ createOp<ops::DepthwiseConv2DOp>(input, kernel, strides, padding_before, padding_after)
->getOutput(0);
result = createOp<ops::AddOp>(result, bias)->getOutput(0);
return {addFusedActivation(result, opts->fused_activation_function())};
auto kernel = inputs.at(1);
auto input = inputs.at(2);
- Shape strides{opts->stride_h(), opts->stride_w()};
+ const std::vector<std::int32_t> strides{opts->stride_h(), opts->stride_w()};
Shape output_shape(convertIntTensorToVector<int32_t>(output_shape_tensor));
// OHWI -> HWOI