// Handle unspecified output shape
const auto &depth_conv_node =
nnfw::misc::polymorphic_downcast<const ir::operation::DepthwiseConv2D &>(node);
- const auto infered_output_shapes = shape_inference::inferDepthwiseConv2DShape(
+ const auto infered_output_shape = shape_inference::inferDepthwiseConv2DShape(
in_tensor->tensorInfo().shape(), kernel_tensor->tensorInfo().shape(),
depth_conv_node.param());
- env->allocateIfNeeded(out_index, {infered_output_shapes[0], output_info.typeInfo()});
+ env->allocateIfNeeded(
+ out_index, ir::OperandInfo::createStaticInfo(infered_output_shape, output_info.typeInfo()));
}
else
{